From 105087d3676e9c9abdc03e12fc5d94a1fa8d5e0b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 21 Dec 2014 14:09:18 -0800 Subject: [PATCH] dx9: Swap depal bgra in shader. We don't swap palettes anymore, except in the shader. --- GPU/Common/DepalettizeShaderCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/DepalettizeShaderCommon.cpp b/GPU/Common/DepalettizeShaderCommon.cpp index b43630795..48e1a375f 100644 --- a/GPU/Common/DepalettizeShaderCommon.cpp +++ b/GPU/Common/DepalettizeShaderCommon.cpp @@ -237,7 +237,7 @@ void GenerateDepalShaderFloat(char *buffer, GEBufferFormat pixelFormat, ShaderLa WRITE(p, "float4 main(float2 v_texcoord0 : TEXCOORD0) : COLOR0 {\n"); WRITE(p, " float4 index = tex2D(tex, v_texcoord0);\n"); WRITE(p, " float coord = (%s * %f)%s;\n", lookupMethod, index_multiplier, offset); - WRITE(p, " return tex2D(pal, float2(coord, 0.0));\n"); + WRITE(p, " return tex2D(pal, float2(coord, 0.0)).bgra;\n"); WRITE(p, "}\n"); } }