diff options
author | José Fonseca <[email protected]> | 2009-12-26 11:01:05 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-12-26 11:01:05 +0000 |
commit | 7a15642f411613df51474d5c2ab85456b5ca41ce (patch) | |
tree | 71cfb9efd6bd5b742cc3ec25e160273d90eed57c /src | |
parent | 491a18494373434c1a8e563f489d51b7760f227f (diff) |
softpipe: Flush draw module before switching framebuffer.
Otherwise geometry might end up in the wrong rendertarget.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_surface.c b/src/gallium/drivers/softpipe/sp_state_surface.c index a518248bb18..f6154109ea8 100644 --- a/src/gallium/drivers/softpipe/sp_state_surface.c +++ b/src/gallium/drivers/softpipe/sp_state_surface.c @@ -51,6 +51,8 @@ softpipe_set_framebuffer_state(struct pipe_context *pipe, struct softpipe_context *sp = softpipe_context(pipe); uint i; + draw_flush(sp->draw); + for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) { /* check if changing cbuf */ if (sp->framebuffer.cbufs[i] != fb->cbufs[i]) { |