mesa: minor clean up in check_begin_texture_render()
authorBrian Paul <brianp@vmware.com>
Tue, 13 Oct 2009 00:09:32 +0000 (18:09 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Oct 2009 00:12:01 +0000 (18:12 -0600)
src/mesa/main/fbobject.c

index 6e767bb24d1c1b9a1d0d8257d8803b578f0fc2f6..87061aeb0d184b854c978e2bd77007de86042ff6 100644 (file)
@@ -1129,7 +1129,7 @@ check_begin_texture_render(GLcontext *ctx, struct gl_framebuffer *fb)
       struct gl_renderbuffer_attachment *att = fb->Attachment + i;
       struct gl_texture_object *texObj = att->Texture;
       if (texObj
-          && att->Texture->Image[att->CubeMapFace][att->TextureLevel]) {
+          && texObj->Image[att->CubeMapFace][att->TextureLevel]) {
          ctx->Driver.RenderTexture(ctx, fb, att);
       }
    }