From 2165523fdcdaf5a27110f92ae86d773293458343 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 2 Feb 2019 14:14:58 +1000 Subject: [PATCH] TextureConverterShader: Write EFB2Tex XFB copies with alpha value of 1 This way we don't end up with artifacts of the EFB's alpha values in frame dumps. XFB copies loaded from RAM also set the alpha to 1, so this will match. --- Source/Core/VideoCommon/TextureConverterShaderGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp index 5cfb3e7c76..ccb01c20ed 100644 --- a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp +++ b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp @@ -268,8 +268,8 @@ ShaderCode GenerateShader(APIType api_type, const UidData* uid_data) break; case EFBCopyFormat::XFB: - out.Write(" ocol0 = float4(pow(texcol.rgb, float3(gamma_rcp, gamma_rcp, gamma_rcp)), " - "texcol.a);\n"); + out.Write( + " ocol0 = float4(pow(texcol.rgb, float3(gamma_rcp, gamma_rcp, gamma_rcp)), 1.0f);\n"); break; default: