Clarify logical condition in dlls/wined3d/arb_program_shader.c

Gerald Pfeifer gerald at pfeifer.com
Sat Jun 20 10:17:53 CDT 2009


This makes it more clear that ! applies to the overall condition, 
not just to the first part which is then and-ed.

Gerald

ChangeLog:
Clarify logical condition in find_clip_texcoord().

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index c886195..8fcabd7 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -3830,7 +3830,7 @@ static void find_clip_texcoord(IWineD3DPixelShaderImpl *ps, const WineD3D_GL_Inf
     {
         for(i = GL_LIMITS(texture_stages); i > 0; i--)
         {
-            if(!ps->baseShader.reg_maps.input_registers & (1 << (i - 1)))
+            if(!(ps->baseShader.reg_maps.input_registers & (1 << (i - 1))))
             {
                 shader_priv->clipplane_emulation = i;
                 break;



More information about the wine-patches mailing list