mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
softpipe: Flush draw module before switching framebuffer.
Otherwise geometry might end up in the wrong rendertarget.
This commit is contained in:
parent
12ba355978
commit
1befcd5a2a
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ softpipe_set_framebuffer_state(struct pipe_context *pipe,
|
||||||
struct softpipe_context *sp = softpipe_context(pipe);
|
struct softpipe_context *sp = softpipe_context(pipe);
|
||||||
uint i;
|
uint i;
|
||||||
|
|
||||||
|
draw_flush(sp->draw);
|
||||||
|
|
||||||
for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
|
for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
|
||||||
/* check if changing cbuf */
|
/* check if changing cbuf */
|
||||||
if (sp->framebuffer.cbufs[i] != fb->cbufs[i]) {
|
if (sp->framebuffer.cbufs[i] != fb->cbufs[i]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue