cogl: Flush journal before blitting

Make sure to submit all pending primitives before blitting, otherwise
rendering from the shell may be incomplete leaving partial drawing of
the shell widgets.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/820
This commit is contained in:
Olivier Fourdan 2019-10-01 15:54:47 +02:00
parent 0a3f25c303
commit 0cdf13ac12

View File

@ -1374,6 +1374,11 @@ cogl_blit_framebuffer (CoglFramebuffer *src,
return FALSE; return FALSE;
} }
/* Make sure any batched primitives get submitted to the driver
* before blitting
*/
_cogl_framebuffer_flush_journal (src);
/* Make sure the current framebuffers are bound. We explicitly avoid /* Make sure the current framebuffers are bound. We explicitly avoid
flushing the clip state so we can bind our own empty state */ flushing the clip state so we can bind our own empty state */
_cogl_framebuffer_flush_state (dest, _cogl_framebuffer_flush_state (dest,