diff options
| author | skidau <skidau@gmail.com> | 2012-03-22 20:36:41 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2012-03-22 20:36:41 +1100 |
| commit | 006923e871e496a7c6c0fe9ba76da4ee939ce14e (patch) | |
| tree | 427e0f9a2d960d5045dc9897c84599d4dd60e68d /Source/Core/VideoCommon/Src/PixelShaderGen.cpp | |
| parent | d3ecf9821335fde15d429ffc1bd58dc0b4f6c665 (diff) | |
Disabled zcomploc while update_enable has been set in zmode. Fixes zcomploc in F-Zero GX.
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index e4944c842c..ec4eb2c70b 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -1147,7 +1147,7 @@ static bool WriteAlphaTest(char *&p, API_TYPE ApiType,DSTALPHA_MODE dstAlphaMode WRITE(p, "ocol1 = 0;\n"); if (DepthTextureEnable) WRITE(p, "depth = 1.f;\n"); - if (!bpmem.zcontrol.zcomploc) + if (!(bpmem.zcontrol.zcomploc && bpmem.zmode.updateenable)) { WRITE(p, "discard;\n"); if (ApiType != API_D3D11) |
