From 0f4d04f4fbe177f8bae99cc2c99efc5065667e35 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Sun, 21 Sep 2008 10:21:37 +0000 Subject: [PATCH] Fixed DX9's 16 and 24 bit comparisons. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@593 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/PixelShader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/PixelShader.cpp b/Source/Plugins/Plugin_VideoDX9/Src/PixelShader.cpp index 5a5c075938..edd7ad9326 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/PixelShader.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/PixelShader.cpp @@ -228,7 +228,7 @@ const char *tevAInputTable2[] = "textemp", //TEXA, "rastemp", //RASA, "konsttemp", //KONST, (hw1 had quarter) - "0.0", //ZERO + "float4(0,0,0,0)",//ZERO "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR", @@ -328,6 +328,7 @@ float4 main(in float4 colors[2] : COLOR0",PS_CONST_CONSTALPHA,PS_CONST_ALPHAREF, WRITE(p,") : COLOR\n\ {\n\ float4 c0=color0,c1=color1,c2=color2,prev=float4(0.0f,0.0f,0.0f,0.0f),textemp,rastemp,konsttemp;\n\ +float3 comp16 = float3(1,255,0), comp24 = float3(1,255,255*255);\n\ \n"); for (int i = 0; i < numStages; i++)