fix for older gcc's (from freedesktop bug id #419)
authorAlan Hourihane <alanh@tungstengraphics.com>
Thu, 1 Jul 2004 11:35:53 +0000 (11:35 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Thu, 1 Jul 2004 11:35:53 +0000 (11:35 +0000)
src/mesa/drivers/dri/i915/i830_vtbl.c
src/mesa/drivers/dri/i915/i915_vtbl.c

index 3617ce764d2b061be437889f95642d4f554dfc9c..1a659fd53eacc868561e327e799625b7ace2a4b2 100644 (file)
@@ -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"); 
index 95fa5b4f378f95e247968c840cf0bce8aa25b507..203e1a459098a06c28e2e8fd1ff4f3bc176c94f8 100644 (file)
@@ -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.