projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2593bb
)
in check_end_texture_render(), test for presence of a renderbuffer and texobj
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 16:14:43 +0000
(09:14 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 16:14:43 +0000
(09:14 -0700)
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index 6f7effcce70b96086523f538a3bfd06e40ecf298..963e35d6786cce4767b6eb9c35d14132e24e13ba 100644
(file)
--- 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);
}
}