summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-04 09:56:08 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-04 10:02:43 -0600
commitc4b6941e62f5e30a7c479b7b8d6521cc4dd92e3e (patch)
tree36f473866c769e6010a9fc2ec5a4f13918e3c82d /src
parent4a18324c0bca4ae806b1c62cad44e859f0924a9b (diff)
mesa: move assertion
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/fbobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index e4ff575e18..56a3131016 100644
--- 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;