From: José Fonseca Date: Wed, 1 Jul 2009 18:06:54 +0000 (+0100) Subject: mesa: Unbind depth/stencil surface from pipe_framebuffer when none is attached. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2a8ef4430e153589a9d1a284c8f2005a4a98410;p=mesa.git mesa: Unbind depth/stencil surface from pipe_framebuffer when none is attached. --- diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index 536293683e9..3ef919a45e9 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -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);