From: Brian Date: Thu, 8 Nov 2007 16:14:43 +0000 (-0700) Subject: in check_end_texture_render(), test for presence of a renderbuffer and texobj X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98c539d337fec8b4e21d9788b52ff551462e90d6;p=mesa.git in check_end_texture_render(), test for presence of a renderbuffer and texobj --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 6f7effcce70..963e35d6786 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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); } }