mesa: replace _mesa_unreference_framebuffer() with _mesa_reference_framebuffer()

This commit is contained in:
Brian Paul
2009-02-09 08:30:55 -07:00
parent 60b3fe6c19
commit d52294439c
2 changed files with 5 additions and 5 deletions

View File

@@ -1304,10 +1304,10 @@ _mesa_free_context_data( GLcontext *ctx )
} }
/* unreference WinSysDraw/Read buffers */ /* unreference WinSysDraw/Read buffers */
_mesa_unreference_framebuffer(&ctx->WinSysDrawBuffer); _mesa_reference_framebuffer(&ctx->WinSysDrawBuffer, NULL);
_mesa_unreference_framebuffer(&ctx->WinSysReadBuffer); _mesa_reference_framebuffer(&ctx->WinSysReadBuffer, NULL);
_mesa_unreference_framebuffer(&ctx->DrawBuffer); _mesa_reference_framebuffer(&ctx->DrawBuffer, NULL);
_mesa_unreference_framebuffer(&ctx->ReadBuffer); _mesa_reference_framebuffer(&ctx->ReadBuffer, NULL);
_mesa_reference_vertprog(ctx, &ctx->VertexProgram.Current, NULL); _mesa_reference_vertprog(ctx, &ctx->VertexProgram.Current, NULL);
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, NULL); _mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, NULL);

View File

@@ -1268,7 +1268,7 @@ _mesa_DeleteFramebuffersEXT(GLsizei n, const GLuint *framebuffers)
/* But the object will not be freed until it's no longer /* But the object will not be freed until it's no longer
* bound in any context. * bound in any context.
*/ */
_mesa_unreference_framebuffer(&fb); _mesa_reference_framebuffer(&fb, NULL);
} }
} }
} }