mesa: replace _mesa_unreference_framebuffer() with _mesa_reference_framebuffer()
authorBrian Paul <brianp@vmware.com>
Mon, 9 Feb 2009 15:30:55 +0000 (08:30 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 9 Feb 2009 21:00:47 +0000 (14:00 -0700)
src/mesa/main/context.c
src/mesa/main/fbobject.c

index 608942979f41d9f0ae1d9d6b52710d6de29dbe8b..62c44733564eabc428de92e46940edffd6f80175 100644 (file)
@@ -1304,10 +1304,10 @@ _mesa_free_context_data( GLcontext *ctx )
    }
 
    /* unreference WinSysDraw/Read buffers */
-   _mesa_unreference_framebuffer(&ctx->WinSysDrawBuffer);
-   _mesa_unreference_framebuffer(&ctx->WinSysReadBuffer);
-   _mesa_unreference_framebuffer(&ctx->DrawBuffer);
-   _mesa_unreference_framebuffer(&ctx->ReadBuffer);
+   _mesa_reference_framebuffer(&ctx->WinSysDrawBuffer, NULL);
+   _mesa_reference_framebuffer(&ctx->WinSysReadBuffer, NULL);
+   _mesa_reference_framebuffer(&ctx->DrawBuffer, NULL);
+   _mesa_reference_framebuffer(&ctx->ReadBuffer, NULL);
 
    _mesa_reference_vertprog(ctx, &ctx->VertexProgram.Current, NULL);
    _mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, NULL);
index d08ad33902606cff178035aa7ebd234b65127e65..f5e17c76750b5a78f5b353f3a5a35dd7252a8d0f 100644 (file)
@@ -1268,7 +1268,7 @@ _mesa_DeleteFramebuffersEXT(GLsizei n, const GLuint *framebuffers)
                /* But the object will not be freed until it's no longer
                 * bound in any context.
                 */
-               _mesa_unreference_framebuffer(&fb);
+               _mesa_reference_framebuffer(&fb, NULL);
            }
         }
       }