fix issue in _mesa_free_framebuffer_data()
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 25 Mar 2006 17:57:52 +0000 (17:57 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 25 Mar 2006 17:57:52 +0000 (17:57 +0000)
src/mesa/main/framebuffer.c

index 0b543df9a5cf4978b77d51e6b0109e4775b78c92..5cea6d1a173942ff061bd7350e07b4d79fd48b51 100644 (file)
@@ -178,7 +178,7 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb)
 
    for (i = 0; i < BUFFER_COUNT; i++) {
       struct gl_renderbuffer_attachment *att = &fb->Attachment[i];
-      if (att->Type == GL_RENDERBUFFER_EXT && att->Renderbuffer) {
+      if (att->Renderbuffer) {
          struct gl_renderbuffer *rb = att->Renderbuffer;
          rb->RefCount--;
          if (rb->RefCount == 0) {