Commit 74b4516b authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Only consider POSITION0 PS inputs as vpos.

parent 96b48191
...@@ -4151,7 +4151,7 @@ static void shader_glsl_input_pack(const struct wined3d_shader *shader, struct w ...@@ -4151,7 +4151,7 @@ static void shader_glsl_input_pack(const struct wined3d_shader *shader, struct w
if (vertexprocessing == vertexshader) if (vertexprocessing == vertexshader)
{ {
if (!strcmp(semantic_name, "SV_POSITION")) if (!strcmp(semantic_name, "SV_POSITION") && !semantic_idx)
shader_addline(buffer, "ps_in[%u]%s = vpos%s;\n", shader_addline(buffer, "ps_in[%u]%s = vpos%s;\n",
shader->u.ps.input_reg_map[i], reg_mask, reg_mask); shader->u.ps.input_reg_map[i], reg_mask, reg_mask);
else else
......
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