Fix typo from commit 1d312ae0137eb39bf74fac91eb97ed25c289a4ca .
authorJerome Glisse <glisse@freedesktop.org>
Thu, 11 Jan 2007 11:53:06 +0000 (12:53 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 11 Jan 2007 11:54:42 +0000 (12:54 +0100)
src/mesa/drivers/dri/r300/r300_fragprog.c

index 179bc58e9e924096fbe982cee0ca5ea9ab4f19ec..6e85f0b5ddc83762565b751700dce17295106cdf 100644 (file)
@@ -463,7 +463,7 @@ static int swz_native(struct r300_fragment_program *rp,
                      GLuint arbneg)
 {
        /* Native swizzle, handle negation */
-       src = (src & ~REG_NEGS_SHIFT) |
+       src = (src & ~REG_NEGS_MASK) |
                (((arbneg >> 3) & 1) << REG_NEGS_SHIFT);
 
        if ((arbneg & 0x7) == 0x0) {