radeon: disable texobj state for 3d texture
authorDave Airlie <airlied@redhat.com>
Thu, 10 Nov 2011 13:47:55 +0000 (13:47 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 15:04:53 +0000 (15:04 +0000)
for 3d texture fallback, disable the texobj state.

Signed-off-by : Dave Airlie <airlied@redhat.com>

src/mesa/drivers/dri/radeon/radeon_texstate.c

index 4a4ea0232a5aa1cf2fe3210ed013c9151fd9ec02..e6fb121390e045293395d2599537a9c51d53fedd 100644 (file)
@@ -1103,6 +1103,7 @@ static GLboolean radeonUpdateTextureUnit( struct gl_context *ctx, int unit )
    r100ContextPtr rmesa = R100_CONTEXT(ctx);
 
    if (ctx->Texture.Unit[unit]._ReallyEnabled & TEXTURE_3D_BIT) {
+     disable_tex_obj_state(rmesa, unit);
      rmesa->state.texture.unit[unit].texobj = NULL;
      return GL_FALSE;
    }