diff options
author | José Fonseca <[email protected]> | 2009-12-26 11:00:42 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-12-26 11:00:42 +0000 |
commit | 491a18494373434c1a8e563f489d51b7760f227f (patch) | |
tree | f1bf8403fcbb9b074834deb89d78015afd14a995 /src/gallium/drivers | |
parent | 399190d13668ed457cf5d6bbbefe908a95bad289 (diff) |
llvmpipe: Flush draw module before switching framebuffer.
Otherwise geometry will end up in the wrong rendertarget.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_surface.c b/src/gallium/drivers/llvmpipe/lp_state_surface.c index ba970cac985..e37ff04f3df 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_state_surface.c @@ -51,6 +51,8 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe, struct llvmpipe_context *lp = llvmpipe_context(pipe); uint i; + draw_flush(lp->draw); + for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) { /* check if changing cbuf */ if (lp->framebuffer.cbufs[i] != fb->cbufs[i]) { |