fix broken negate
authorAapo Tahkola <aet@rasterburn.org>
Sun, 18 Jun 2006 12:50:27 +0000 (12:50 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Sun, 18 Jun 2006 12:50:27 +0000 (12:50 +0000)
src/mesa/tnl/t_vp_build.c

index c2fd42c533200dc668fd980e4df37b2f383a03a3..4387e066fcd862da5340a713ea33b78793af592a 100644 (file)
@@ -460,7 +460,7 @@ static void emit_arg( struct prog_src_register *src,
    src->File = reg.file;
    src->Index = reg.idx;
    src->Swizzle = reg.swz;
-   src->NegateBase = reg.negate;
+   src->NegateBase = reg.negate ? NEGATE_XYZW : 0;
    src->Abs = 0;
    src->NegateAbs = 0;
    src->RelAddr = 0;