summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-07-01 19:06:54 +0100
committerJosé Fonseca <[email protected]>2009-07-01 19:10:49 +0100
commite2a8ef4430e153589a9d1a284c8f2005a4a98410 (patch)
tree57cd0084f00bbcda321736fa4cffde54149bbeb8
parent6c913411d39fd68eee1c1eeee7b6e81db9785fd1 (diff)
mesa: Unbind depth/stencil surface from pipe_framebuffer when none is attached.
-rw-r--r--src/mesa/state_tracker/st_atom_framebuffer.c2
1 files changed, 2 insertions, 0 deletions
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);