summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-08 09:14:43 -0700
committerBrian <[email protected]>2007-11-08 09:14:43 -0700
commit98c539d337fec8b4e21d9788b52ff551462e90d6 (patch)
treedb82a61fa8cd64b812e4c766874da520605b6a19 /src
parente2593bb1632cee65af9ef5fe1f9b67928caa25a0 (diff)
in check_end_texture_render(), test for presence of a renderbuffer and texobj
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 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);
}
}