From 2163c211f1a46d7094c92739adfd45ecbe8ff07e Mon Sep 17 00:00:00 2001 From: Star <576681253@qq.com> Date: Fri, 11 Feb 2022 20:49:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=B7=B7=E5=90=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/BDAlphaPlayer/Classes/Render/BDAlphaPlayerMetalRenderer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/BDAlphaPlayer/Classes/Render/BDAlphaPlayerMetalRenderer.m b/iOS/BDAlphaPlayer/Classes/Render/BDAlphaPlayerMetalRenderer.m index 1d23e4c..b4e06ee 100644 --- a/iOS/BDAlphaPlayer/Classes/Render/BDAlphaPlayerMetalRenderer.m +++ b/iOS/BDAlphaPlayer/Classes/Render/BDAlphaPlayerMetalRenderer.m @@ -132,7 +132,7 @@ -(void)setupPipeline pipelineStateDescriptor.colorAttachments[0].pixelFormat = self.mtkView.colorPixelFormat; pipelineStateDescriptor.colorAttachments[0].blendingEnabled = true; pipelineStateDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd; - pipelineStateDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorOne; + pipelineStateDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha; pipelineStateDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOne; pipelineStateDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationMin; pipelineStateDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorOne;