diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-09-08 18:36:39 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-09-08 18:36:39 +0000 |
commit | b15f46a093b2be2a6c630d8f3a2848627a34d728 (patch) | |
tree | 5a9a7436d309f3be71373054daaf478ab1a5dbe9 /src/mesa/drivers/dri/i915/i915_fragprog.c | |
parent | 5cf13977106d9d7b75da0621a1a2c0bc299f4b3a (diff) |
Treat NegateBase as a bitfield, not a boolean.
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_fragprog.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c index ce14f8050e..77a72d6182 100644 --- a/src/mesa/drivers/dri/i915/i915_fragprog.c +++ b/src/mesa/drivers/dri/i915/i915_fragprog.c @@ -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; } |