mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
0a3f25c303
commit
0cdf13ac12
@ -1374,6 +1374,11 @@ cogl_blit_framebuffer (CoglFramebuffer *src,
|
||||
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
|
||||
flushing the clip state so we can bind our own empty state */
|
||||
_cogl_framebuffer_flush_state (dest,
|
||||
|
Loading…
Reference in New Issue
Block a user