Skip to content

Commit

Permalink
dx9: Swap depal bgra in shader.
Browse files Browse the repository at this point in the history
We don't swap palettes anymore, except in the shader.
  • Loading branch information
unknownbrackets committed Mar 1, 2015
1 parent 3bc9547 commit 105087d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/DepalettizeShaderCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 105087d

Please sign in to comment.