mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 10:10:23 +01:00
explicit calls to _mesa_unreference_framebuffer() not always needed now
This commit is contained in:
parent
1a6baf092b
commit
e69da9d02e
1 changed files with 0 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue