From 5e065402455fb438d4ec020df548bb0890e8e505 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sat, 28 Feb 2009 22:35:34 +0000 Subject: [PATCH] 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 --- Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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