tgsi: Fix assert.
authorVinson Lee <vlee@vmware.com>
Mon, 4 Jan 2010 19:25:38 +0000 (11:25 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 4 Jan 2010 19:25:38 +0000 (11:25 -0800)
src/gallium/auxiliary/tgsi/tgsi_exec.c

index ba89f2fbc3cfeda7419b0c53a57e600403f1dd30..517ae67d79b4a309e6b2a6b21a423a5359d37a1b 100644 (file)
@@ -1955,7 +1955,7 @@ exec_declaration(struct tgsi_exec_machine *mach,
          if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) {
             assert(decl->Semantic.Index == 0);
             assert(first == last);
-            assert(mask = TGSI_WRITEMASK_XYZW);
+            assert(mask == TGSI_WRITEMASK_XYZW);
 
             mach->Inputs[first] = mach->QuadPos;
          } else if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {