From b573319f8f2f0f4deab98b9261b585610ecb6143 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 7 Sep 2017 11:48:01 +1000 Subject: [PATCH] D3D: Fix shader compile error with logicop and alpha test enabled --- Source/Core/VideoCommon/PixelShaderGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 990f5f938f..b217e6f176 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -1232,7 +1232,7 @@ static void WriteAlphaTest(ShaderCode& out, const pixel_shader_uid_data* uid_dat out.Write(")) {\n"); out.Write("\t\tocol0 = float4(0.0, 0.0, 0.0, 0.0);\n"); - if (use_dual_source) + if (use_dual_source && !(ApiType == APIType::D3D && uid_data->uint_output)) out.Write("\t\tocol1 = float4(0.0, 0.0, 0.0, 0.0);\n"); if (per_pixel_depth) {