fix for older gcc's (from freedesktop bug id #419)

This commit is contained in:
Alan Hourihane 2004-07-01 11:35:53 +00:00
parent 160215bdeb
commit 869fc59b63
2 changed files with 5 additions and 3 deletions

View 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");

View 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.