mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 01:00:01 +00:00
dx9: Swap depal bgra in shader.
We don't swap palettes anymore, except in the shader.
This commit is contained in:
parent
3bc954778c
commit
105087d367
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user