[WINED3D] Fix typo breaking 3.0 pshaders color input

Ivan Gyurdiev ivg231 at gmail.com
Fri Jul 7 12:01:27 CDT 2006


Fix regression caused by one of the patches today...

-------------- next part --------------
---
 dlls/wined3d/glsl_shader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 82392ad..e4fca41 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -1398,7 +1398,7 @@ void pshader_glsl_input_pack(
                if (usage_idx == 0)
                    shader_addline(buffer, "IN%lu%s = vec4(gl_Color)%s;\n",
                        i, reg_mask, reg_mask);
-               if (usage_idx == 1)
+               else if (usage_idx == 1)
                    shader_addline(buffer, "IN%lu%s = vec4(gl_SecondaryColor)%s;\n",
                        i, reg_mask, reg_mask);
                else
-- 
1.4.0



More information about the wine-patches mailing list