wined3d: Only consider POSITION0 PS inputs as vpos.

This commit is contained in:
Matteo Bruni 2015-02-06 15:25:33 +01:00 committed by Alexandre Julliard
parent 96b48191c0
commit 74b4516bfa
1 changed files with 1 additions and 1 deletions

View File

@ -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