OSDN Git Service

Treat NegateBase as a bitfield, not a boolean.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 8 Sep 2005 18:36:39 +0000 (18:36 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 8 Sep 2005 18:36:39 +0000 (18:36 +0000)
src/mesa/drivers/dri/i915/i915_fragprog.c

index ce14f80..77a72d6 100644 (file)
@@ -145,7 +145,11 @@ static GLuint src_vector( struct i915_fragment_program *p,
                 GET_SWZ(source->Swizzle, 3));
 
    if (source->NegateBase)
-      src = negate( src, 1,1,1,1 );
+      src = negate( src, 
+                   GET_BIT(source->NegateBase, 0),
+                   GET_BIT(source->NegateBase, 1),
+                   GET_BIT(source->NegateBase, 2),
+                   GET_BIT(source->NegateBase, 3));
 
    return src;
 }