softpipe: Flush draw module before switching framebuffer.

Otherwise geometry might end up in the wrong rendertarget.
This commit is contained in:
José Fonseca
2009-12-26 11:01:05 +00:00
parent 491a184943
commit 7a15642f41
@@ -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]) {