in check_end_texture_render(), test for presence of a renderbuffer and texobj
authorBrian <brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 16:14:43 +0000 (09:14 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 16:14:43 +0000 (09:14 -0700)
src/mesa/main/fbobject.c

index 6f7effcce70b96086523f538a3bfd06e40ecf298..963e35d6786cce4767b6eb9c35d14132e24e13ba 100644 (file)
@@ -913,8 +913,7 @@ check_end_texture_render(GLcontext *ctx, struct gl_framebuffer *fb)
       GLuint i;
       for (i = 0; i < BUFFER_COUNT; i++) {
          struct gl_renderbuffer_attachment *att = fb->Attachment + i;
-         struct gl_texture_object *texObj = att->Texture;
-         if (texObj) {
+         if (att->Texture && att->Renderbuffer) {
             ctx->Driver.FinishRenderTexture(ctx, att);
          }
       }