Commit e178b7ec authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Don't use TXP for rectangle P8 textures.

This was probably taken from the YUV shaders, incorrectly and in reverse logic. It did happen to work though because fragment.texcoord[0].w is 1.0.
parent 3d49060f
......@@ -7255,7 +7255,7 @@ static GLuint gen_p8_shader(struct arbfp_blit_priv *priv,
/* The alpha-component contains the palette index */
if(textype == GL_TEXTURE_RECTANGLE_ARB)
shader_addline(&buffer, "TXP index, fragment.texcoord[0], texture[0], RECT;\n");
shader_addline(&buffer, "TEX index, fragment.texcoord[0], texture[0], RECT;\n");
else
shader_addline(&buffer, "TEX index, fragment.texcoord[0], texture[0], 2D;\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment