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 c2fd42c..4387e06 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;