From 2f6953efb62b487639bbc82be95466e07cb42cdb Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 15 Dec 2021 16:39:15 -0800 Subject: [PATCH] TextureConverterShaderGen: Set alpha to 1 on intensity formats if EFB lacks alpha We were already doing this for non-intensity formats, but it seems like the same applies to intensity formats. --- Source/Core/VideoCommon/TextureConverterShaderGen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp index 42e077ba96..ea458717c8 100644 --- a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp +++ b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp @@ -216,6 +216,9 @@ ShaderCode GeneratePixelShader(APIType api_type, const UidData* uid_data) } else if (uid_data->is_intensity) { + if (!uid_data->efb_has_alpha) + out.Write(" texcol.a = 1.0;\n"); + bool has_four_bits = (uid_data->dst_format == EFBCopyFormat::R4 || uid_data->dst_format == EFBCopyFormat::RA4); bool has_alpha =