From 086f839435ce53676803e6c68f5d2c4a51e42568 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sun, 30 Oct 2016 00:56:18 +0200 Subject: DriverDetails: Make the bug identifiers humanly readable. --- Source/Core/VideoCommon/PixelShaderGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp') diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 37e01ade0d..2d42de591d 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -1194,7 +1194,7 @@ static void WriteAlphaTest(ShaderCode& out, const pixel_shader_uid_data* uid_dat out.SetConstantsUsed(C_ALPHA, C_ALPHA); - if (DriverDetails::HasBug(DriverDetails::BUG_BROKENNEGATEDBOOLEAN)) + if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_NEGATED_BOOLEAN)) out.Write("\tif(( "); else out.Write("\tif(!( "); @@ -1209,7 +1209,7 @@ static void WriteAlphaTest(ShaderCode& out, const pixel_shader_uid_data* uid_dat compindex = uid_data->alpha_test_comp1; out.Write(tevAlphaFuncsTable[compindex], alphaRef[1]); - if (DriverDetails::HasBug(DriverDetails::BUG_BROKENNEGATEDBOOLEAN)) + if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_NEGATED_BOOLEAN)) out.Write(") == false) {\n"); else out.Write(")) {\n"); -- cgit v1.2.3 From 2058a494656c9aac8211eaf9665b36308340d6cc Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Mon, 31 Oct 2016 14:56:30 +0100 Subject: PixelShaderGen: Remove unused global variable. --- Source/Core/VideoCommon/PixelShaderGen.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp') diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 2d42de591d..26148147c5 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -530,7 +530,6 @@ ShaderCode GeneratePixelShaderCode(APIType ApiType, const pixel_shader_uid_data* else { out.Write("FRAGMENT_OUTPUT_LOCATION(0) out vec4 ocol0;\n"); - out.Write("vec4 ocol1;\n"); // Consume the output we don't use } if (uid_data->per_pixel_depth) -- cgit v1.2.3