explicit calls to _mesa_unreference_framebuffer() not always needed now
authorBrian <brian@yutani.localnet.net>
Tue, 6 Mar 2007 23:26:22 +0000 (16:26 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 6 Mar 2007 23:26:22 +0000 (16:26 -0700)
src/mesa/main/fbobject.c

index 6608eefc6c0e0f293b17b9bf3d53837fb027203e..f7e870b49cd9335d3974f98931be4ffd4190aff4 100644 (file)
@@ -1014,7 +1014,6 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer)
     */
 
    if (bindReadBuf) {
-      _mesa_unreference_framebuffer(&ctx->ReadBuffer);
       _mesa_reference_framebuffer(&ctx->ReadBuffer, newFb);
    }
 
@@ -1022,7 +1021,6 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer)
       /* check if old FB had any texture attachments */
       check_end_texture_render(ctx, ctx->DrawBuffer);
       /* check if time to delete this framebuffer */
-      _mesa_unreference_framebuffer(&ctx->DrawBuffer);
       _mesa_reference_framebuffer(&ctx->DrawBuffer, newFb);
       if (newFb->Name != 0) {
          /* check if newly bound framebuffer has any texture attachments */