dx9: Swap depal bgra in shader.

We don't swap palettes anymore, except in the shader.
This commit is contained in:
Unknown W. Brackets 2014-12-21 14:09:18 -08:00
parent 3bc954778c
commit 105087d367

View File

@ -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");
}
}