summaryrefslogtreecommitdiff
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-08 09:14:43 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-08 09:14:43 -0700
commit98c539d337fec8b4e21d9788b52ff551462e90d6 (patch)
treedb82a61fa8cd64b812e4c766874da520605b6a19 /src/mesa/main/fbobject.c
parente2593bb1632cee65af9ef5fe1f9b67928caa25a0 (diff)
in check_end_texture_render(), test for presence of a renderbuffer and texobj
Diffstat (limited to 'src/mesa/main/fbobject.c')
-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 6f7effcce7..963e35d678 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);
}
}