i915: fix the error in the previos commit.
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 7 Dec 2007 09:33:18 +0000 (17:33 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 7 Dec 2007 09:33:18 +0000 (17:33 +0800)
src/mesa/drivers/dri/i915/i915_vtbl.c

index 4590057a2fe3cbfeec753f87aba5201798b6c245..58f681f74b76c8708e022c45042bc2dcbed742f5 100644 (file)
@@ -442,7 +442,7 @@ i915_do_emit_state(struct intel_context *intel)
    }
 
    if (dirty & I915_UPLOAD_PROGRAM) {
-      if (ProgramSize) {
+      if (state->ProgramSize) {
          if (INTEL_DEBUG & DEBUG_STATE)
             fprintf(stderr, "I915_UPLOAD_PROGRAM:\n");