mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
st/mesa: remove trailing NULL colorbuffers
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 8a1dfba73e)
This commit is contained in:
parent
d17b75f1e5
commit
4f3abcfee4
1 changed files with 6 additions and 0 deletions
|
|
@ -90,6 +90,12 @@ update_framebuffer_state( struct st_context *st )
|
|||
pipe_surface_reference(&framebuffer->cbufs[i], NULL);
|
||||
}
|
||||
|
||||
/* Remove trailing GL_NONE draw buffers. */
|
||||
while (framebuffer->nr_cbufs &&
|
||||
!framebuffer->cbufs[framebuffer->nr_cbufs-1]) {
|
||||
framebuffer->nr_cbufs--;
|
||||
}
|
||||
|
||||
/*
|
||||
* Depth/Stencil renderbuffer/surface.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue