summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-10-06 21:54:09 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2013-10-06 21:54:09 -0500
commitc05404971291b1817e313d575a28470c6ca92da2 (patch)
tree56fd305c0b4e0d61e9aeb182f66ef66989d353f5 /Source/Core/VideoCommon
parent26c38648ece6e27b4b98e61312fe2d383757b8a4 (diff)
Fix PixelShaderGen from the previous commit.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index 1720e4e8b1..e4d2bc569f 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -658,12 +658,12 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
if (dstAlphaMode == DSTALPHA_ALPHA_PASS)
{
out.SetConstantsUsed(C_ALPHA, C_ALPHA);
- out.Write("\tgl_FragColor = float4(prev.rgb, " I_ALPHA"[0].a);\n");
+ out.Write("\tocol0 = float4(prev.rgb, " I_ALPHA"[0].a);\n");
}
else
{
WriteFog<T>(out, uid_data);
- out.Write("\tgl_FragColor = prev;\n");
+ out.Write("\tocol0 = prev;\n");
}
// Use dual-source color blending to perform dst alpha in a single pass
@@ -674,7 +674,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
// Colors will be blended against the alpha from ocol1 and
// the alpha from ocol0 will be written to the framebuffer.
out.Write("\tocol1 = prev;\n");
- out.Write("\tgl_FragColor.a = " I_ALPHA"[0].a;\n");
+ out.Write("\tocol0.a = " I_ALPHA"[0].a;\n");
}
out.Write("}\n");