summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-02-28 22:35:34 +0000
committerhrydgard <hrydgard@gmail.com>2009-02-28 22:35:34 +0000
commit5e065402455fb438d4ec020df548bb0890e8e505 (patch)
tree9152f0f5e8ebfca7eeaaa65d09bc0a2c2e29ab21 /Source/Core/VideoCommon/Src/PixelShaderGen.cpp
parentecbfec2a13b581148f0d18cd2a8de995289383a0 (diff)
revert a small change that broke gl. i'll find a generic solution later.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2485 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index bb95160cd3..af932e1416 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -928,7 +928,8 @@ static bool WriteAlphaTest(char *&p)
break;
}
- WRITE(p, "clip( ");
+ // Seems we need clip for Cg and discard for d3d. sigh.
+ WRITE(p, "discard( ");
WriteAlphaCompare(p, 0, bpmem.alphaFunc.comp0);
// negated because testing the inverse condition