From: Jerome Glisse Date: Thu, 11 Jan 2007 11:53:06 +0000 (+0100) Subject: Fix typo from commit 1d312ae0137eb39bf74fac91eb97ed25c289a4ca . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b55f1ec9af30ddc5fa44818f85518fffe4580dc6;p=mesa.git Fix typo from commit 1d312ae0137eb39bf74fac91eb97ed25c289a4ca . --- diff --git a/src/mesa/drivers/dri/r300/r300_fragprog.c b/src/mesa/drivers/dri/r300/r300_fragprog.c index 179bc58e9e9..6e85f0b5ddc 100644 --- a/src/mesa/drivers/dri/r300/r300_fragprog.c +++ b/src/mesa/drivers/dri/r300/r300_fragprog.c @@ -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) {