assert that fb->RefCount==0 in _mesa_free_framebuffer_data()
authorBrian <brian@yutani.localnet.net>
Tue, 27 Feb 2007 18:09:28 +0000 (11:09 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 27 Feb 2007 18:09:28 +0000 (11:09 -0700)
src/mesa/main/framebuffer.c

index d061d22d9b82e0679d88cb432ebfefaa68ba51a4..3fe70f449c286a655897dc859dfc9644b2f503db 100644 (file)
@@ -216,6 +216,7 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb)
    GLuint i;
 
    assert(fb);
+   assert(fb->RefCount == 0);
 
    _glthread_DESTROY_MUTEX(fb->Mutex);