27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
|
commit e69da9d02ecdf47d930276783f8b8df1a3cd99dd
|
||
|
Author: Brian <brian@yutani.localnet.net>
|
||
|
Date: Tue Mar 6 16:26:22 2007 -0700
|
||
|
|
||
|
explicit calls to _mesa_unreference_framebuffer() not always needed now
|
||
|
|
||
|
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
|
||
|
index 6608eef..f7e870b 100644
|
||
|
--- a/src/mesa/main/fbobject.c
|
||
|
+++ b/src/mesa/main/fbobject.c
|
||
|
@@ -1014,7 +1014,6 @@ _mesa_BindFramebufferEXT(GLenum target,
|
||
|
*/
|
||
|
|
||
|
if (bindReadBuf) {
|
||
|
- _mesa_unreference_framebuffer(&ctx->ReadBuffer);
|
||
|
_mesa_reference_framebuffer(&ctx->ReadBuffer, newFb);
|
||
|
}
|
||
|
|
||
|
@@ -1022,7 +1021,6 @@ _mesa_BindFramebufferEXT(GLenum target,
|
||
|
/* 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 */
|