r200: align with r100 code
authorDave Airlie <airlied@redhat.com>
Tue, 17 Feb 2009 00:28:43 +0000 (10:28 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Feb 2009 00:28:43 +0000 (10:28 +1000)
src/mesa/drivers/dri/r200/r200_texstate.c

index e6aff022b3db3c34444cbfee4d5e6a084d7fe428..eee4475137b08cfb32a880e7e264c8dc3c9399bd 100644 (file)
@@ -1398,7 +1398,8 @@ static void setup_hardware_state(r200ContextPtr rmesa, radeonTexObj *t)
    if (t->base.Target == GL_TEXTURE_RECTANGLE_NV) {
       t->pp_txformat |= R200_TXFORMAT_NON_POWER2;
    }
-   
+
+   t->dirty_state = R200_TEX_ALL;
 }
 
 static GLboolean r200_validate_texture(GLcontext *ctx, struct gl_texture_object *texObj, int unit)
@@ -1439,8 +1440,6 @@ static GLboolean r200_validate_texture(GLcontext *ctx, struct gl_texture_object
       rmesa->radeon.NewGLState |= _NEW_TEXTURE_MATRIX;
    }
 
-   t->dirty_state = R200_TEX_ALL;
-   
    t->validated = GL_TRUE;
 
    FALLBACK( rmesa, RADEON_FALLBACK_BORDER_MODE, t->border_fallback );