From 76fc1fe95a93cc0dbd5676be54175648f9690d9c Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 28 Dec 2012 12:18:34 -0600 Subject: [PATCH] This discard was missing in the alpha pretest area. --- Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 437d6d49a5..aa74025d2b 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -787,6 +787,7 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType WRITE(p, "ocol1 = float4(0.0f);\n"); if(ApiType == API_OPENGL && dstAlphaMode != DSTALPHA_DUAL_SOURCE_BLEND) WRITE(p, "gl_FragData[0] = ocol0;\n"); + WRITE(p, "discard;\n"); if(ApiType != API_D3D11) WRITE(p, "return;\n"); }