mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
mesa: Only end render-to-texture at bind time for drawbuffers.
If we're only starting for new draw buffers, why would we end for old read buffers along with draw buffers?
This commit is contained in:
parent
7199b0b681
commit
a1fd13fff1
1 changed files with 2 additions and 5 deletions
|
|
@ -1758,11 +1758,8 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer)
|
|||
if (bindDrawBuf) {
|
||||
FLUSH_VERTICES(ctx, _NEW_BUFFERS);
|
||||
|
||||
/* check if old read/draw buffers were render-to-texture */
|
||||
if (!bindReadBuf)
|
||||
check_end_texture_render(ctx, oldReadFb);
|
||||
|
||||
if (oldDrawFb != oldReadFb)
|
||||
/* check if old framebuffer had any texture attachments */
|
||||
if (oldDrawFb)
|
||||
check_end_texture_render(ctx, oldDrawFb);
|
||||
|
||||
/* check if newly bound framebuffer has any texture attachments */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue