projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e91ad8
)
check for texture and renderbuffer in check_end_texture_render()
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 9 Nov 2007 15:55:49 +0000
(08:55 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 9 Nov 2007 15:56:05 +0000
(08:56 -0700)
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index db04c785de4849d54834bfb5c0ed7eb0f4092e13..671f80c7a48ddc3a448e0eecaa0c9adc5595d213 100644
(file)
--- 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);
}
}