summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-09 08:55:49 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-09 08:56:05 -0700
commit8b36166d295beb472ed7cedf1989894665233b98 (patch)
treea13e56ccbdfa3a9ec9e164e70269b6bf5b05ee32 /src
parent4e91ad8c0ec277d9df48ccdd8500bfb156073adc (diff)
check for texture and renderbuffer in check_end_texture_render()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/fbobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index db04c785de..671f80c7a4 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);
}
}