summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@Gmail.com>2012-10-13 12:43:00 -0500
committerRyan Houdek <Sonicadvance1@Gmail.com>2012-10-13 12:43:00 -0500
commit3f0d7312fa10db750c97ace02e881d71cb659053 (patch)
treeeec370c5f2bc85ca2d894f961cea6137fb0eb26c /Source/Core/VideoCommon/Src/PixelShaderGen.cpp
parent1a8005d9489b7eea7c840609913c7f249885cbba (diff)
A couple missed lines on the rebase.
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index 6b760ba40f..e7b40c3212 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -978,16 +978,15 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
// Colors will be blended against the alpha from ocol1...
WRITE(p, " ocol1 = ocol0;\n");
// ...and the alpha from ocol0 will be written to the framebuffer.
- WRITE(p, " ocol0.a = " I_ALPHA"[0].a;\n");
-
- if (ApiType == API_GLSL)
+ WRITE(p, " ocol0.a = " I_ALPHA"[0].a;\n");
+ }
+ if (ApiType == API_GLSL)
{
if (DepthTextureEnable)
WRITE(p, "gl_FragDepth = depth;\n");
if (dstAlphaMode != DSTALPHA_DUAL_SOURCE_BLEND)
WRITE(p, "gl_FragData[0] = ocol0;\n");
}
- }
WRITE(p, "}\n");
if (text[sizeof(text) - 1] != 0x7C)