From: Brian Date: Fri, 9 Nov 2007 15:55:49 +0000 (-0700) Subject: check for texture and renderbuffer in check_end_texture_render() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b36166d295beb472ed7cedf1989894665233b98;p=mesa.git check for texture and renderbuffer in check_end_texture_render() --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index db04c785de4..671f80c7a48 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -909,8 +909,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); } }