aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2011-03-03 18:25:49 +0000
committerJakob Bornecrantz <[email protected]>2011-03-03 18:29:17 +0000
commit4bd27cfecc236a0552d31782a6e122da4602c927 (patch)
treef6fd16253a477fb4b74a09e07c2202b3bce4a6f7 /src
parent5d0e8beaa2051c28a7ac941e8aaad286e39e1267 (diff)
rbug: Fix depth stencil surface not being sent to the client
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/rbug/rbug_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c
index 3aefb5b3bb5..4a5d5413d8c 100644
--- a/src/gallium/drivers/rbug/rbug_context.c
+++ b/src/gallium/drivers/rbug/rbug_context.c
@@ -544,6 +544,7 @@ rbug_set_framebuffer_state(struct pipe_context *_pipe,
rb_pipe->curr.nr_cbufs = 0;
memset(rb_pipe->curr.cbufs, 0, sizeof(rb_pipe->curr.cbufs));
+ rb_pipe->curr.zsbuf = NULL;
/* unwrap the input state */
if (_state) {
@@ -556,6 +557,8 @@ rbug_set_framebuffer_state(struct pipe_context *_pipe,
rb_pipe->curr.cbufs[i] = rbug_resource(_state->cbufs[i]->texture);
}
unwrapped_state.zsbuf = rbug_surface_unwrap(_state->zsbuf);
+ if (_state->zsbuf)
+ rb_pipe->curr.zsbuf = rbug_resource(_state->zsbuf->texture);
state = &unwrapped_state;
}