summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-02-28 22:10:38 +0000
committerhrydgard <hrydgard@gmail.com>2009-02-28 22:10:38 +0000
commitecbfec2a13b581148f0d18cd2a8de995289383a0 (patch)
tree68b1d196abcc565c2cdb3578ef21b82390bcfb80 /Source/Core/VideoCommon/Src/PixelShaderGen.cpp
parentee44b2a639a4e33fd0240f89d71e83babc91857f (diff)
THIS BREAKS THE D3D PLUGIN FOR THE NEAR TERM. Resurrect an old patch that moves D3D over to the common shader generator framework. Needs a lot more work.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2484 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index 2ea282a3af..bb95160cd3 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -928,11 +928,11 @@ static bool WriteAlphaTest(char *&p)
break;
}
- WRITE(p, "discard( ");
+ WRITE(p, "clip( ");
WriteAlphaCompare(p, 0, bpmem.alphaFunc.comp0);
// negated because testing the inverse condition
- switch(bpmem.alphaFunc.logic) {
+ switch (bpmem.alphaFunc.logic) {
case 0: WRITE(p, " || "); break; // and
case 1: WRITE(p, " && "); break; // or
case 2: WRITE(p, " == "); break; // xor