From: Alan Hourihane Date: Thu, 1 Jul 2004 11:35:53 +0000 (+0000) Subject: fix for older gcc's (from freedesktop bug id #419) X-Git-Tag: mesa-7.8~10854 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=869fc59b63ee99ced26fbfa02492abb8cd16586d;p=platform%2Fupstream%2Fmesa.git fix for older gcc's (from freedesktop bug id #419) --- diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index 3617ce7..1a659fd 100644 --- a/src/mesa/drivers/dri/i915/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915/i830_vtbl.c @@ -360,9 +360,11 @@ static void i830_emit_state( intelContextPtr intel ) { i830ContextPtr i830 = I830_CONTEXT(intel); struct i830_hw_state *state = i830->current; - BATCH_LOCALS; int i; - GLuint dirty = state->active & ~state->emitted; + GLuint dirty; + BATCH_LOCALS; + + dirty = state->active & ~state->emitted; if (dirty & I830_UPLOAD_CTX) { if (VERBOSE) fprintf(stderr, "I830_UPLOAD_CTX:\n"); diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c index 95fa5b4..203e1a4 100644 --- a/src/mesa/drivers/dri/i915/i915_vtbl.c +++ b/src/mesa/drivers/dri/i915/i915_vtbl.c @@ -219,9 +219,9 @@ static void i915_emit_state( intelContextPtr intel ) { i915ContextPtr i915 = I915_CONTEXT(intel); struct i915_hw_state *state = i915->current; - BATCH_LOCALS; int i; GLuint dirty; + BATCH_LOCALS; /* More to workaround the multitex hang - if one texture unit state * is modified, emit all texture units.