i915: Fix assert.
authorVinson Lee <vlee@vmware.com>
Sat, 26 Dec 2009 23:55:38 +0000 (15:55 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 26 Dec 2009 23:55:38 +0000 (15:55 -0800)
src/mesa/drivers/dri/i915/i915_program.c

index e87700f8e0aaa71159dfa8a5ddae613a8c46d249..ce2c97561166a689fcbb55cc1edce259069b18b6 100644 (file)
@@ -239,7 +239,7 @@ GLuint i915_emit_texld( struct i915_fragment_program *p,
    }
    else {
       assert(GET_UREG_TYPE(dest) != REG_TYPE_CONST);
-      assert(dest = UREG(GET_UREG_TYPE(dest), GET_UREG_NR(dest)));
+      assert(dest == UREG(GET_UREG_TYPE(dest), GET_UREG_NR(dest)));
       /* Can't use unsaved temps for coords, as the phase boundary would result
        * in the contents becoming undefined.
        */