mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
mesa: Unbind depth/stencil surface from pipe_framebuffer when none is attached.
This commit is contained in:
parent
6c913411d3
commit
e2a8ef4430
1 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,8 @@ update_framebuffer_state( struct st_context *st )
|
|||
assert(strb->surface);
|
||||
pipe_surface_reference(&framebuffer->zsbuf, strb->surface);
|
||||
}
|
||||
else
|
||||
pipe_surface_reference(&framebuffer->zsbuf, NULL);
|
||||
}
|
||||
|
||||
cso_set_framebuffer(st->cso_context, framebuffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue