From 74b4516bfac41b35a2e68ee5bf5680a4b529fd53 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Fri, 6 Feb 2015 15:25:33 +0100 Subject: [PATCH] wined3d: Only consider POSITION0 PS inputs as vpos. --- dlls/wined3d/glsl_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index adb9f13cca9..b02cbff0878 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -4151,7 +4151,7 @@ static void shader_glsl_input_pack(const struct wined3d_shader *shader, struct w 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->u.ps.input_reg_map[i], reg_mask, reg_mask); else -- 2.11.4.GIT