projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a18324
)
mesa: move assertion
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 15:56:08 +0000
(09:56 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 16:02:43 +0000
(10:02 -0600)
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index e4ff575e18ebbd4f37004363a0b29ca9e7f327cc..56a3131016fccad24be5a499d086368b78ce78ec 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-185,9
+185,9
@@
_mesa_remove_attachment(GLcontext *ctx, struct gl_renderbuffer_attachment *att)
att->Texture = NULL;
}
if (att->Type == GL_TEXTURE || att->Type == GL_RENDERBUFFER_EXT) {
- ASSERT(att->Renderbuffer);
ASSERT(!att->Texture);
- _mesa_reference_renderbuffer(&att->Renderbuffer, NULL);
+ _mesa_reference_renderbuffer(&att->Renderbuffer, NULL); /* unbind */
+ ASSERT(!att->Renderbuffer);
}
att->Type = GL_NONE;
att->Complete = GL_TRUE;