diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-08 03:20:31 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-08 03:20:31 -0600 |
| commit | cecc3c3873c6aaabea514b3a5eff380e5a32856f (patch) | |
| tree | 30b8de4c172ee25353e188e0e238d49d28ea67f8 /Source/Core/VideoCommon/Src/PixelShaderGen.cpp | |
| parent | 1201988fe4e94720f32f2165ee03d5debf957cd7 (diff) | |
Bit of cleanup. Clean up my massive hack in the ShaderManagerFiles. Almost feature parity with Nvidia CG now I think. Just need to do Alpha test with Dual source blending now.
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 3d328ed70c..584254e371 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -891,7 +891,8 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType if(ApiType == API_GLSL) { if(DepthTextureEnable) - WRITE(p, "gl_FragDepth = depth;\n"); + WRITE(p, "gl_FragDepth = depth;\n"); + WRITE(p, "gl_FragData[0] = ocol0;\n"); } } |
