Blame SOURCES/0010-cogl-Flush-journal-before-blitting.patch

1a3082
From 4c7fe200e05f9a028d440ed2032961d1b798c83b Mon Sep 17 00:00:00 2001
1a3082
From: Olivier Fourdan <ofourdan@redhat.com>
1a3082
Date: Tue, 1 Oct 2019 15:54:47 +0200
1a3082
Subject: [PATCH 10/12] cogl: Flush journal before blitting
1a3082
1a3082
Make sure to submit all pending primitives before blitting, otherwise
1a3082
rendering from the shell may be incomplete leaving partial drawing of
1a3082
the shell widgets.
1a3082
1a3082
https://gitlab.gnome.org/GNOME/mutter/merge_requests/820
1a3082
(cherry picked from commit 0cdf13ac12c570d38737fddb68946157c0b7a4d2)
1a3082
---
1a3082
 cogl/cogl/cogl-framebuffer.c | 5 +++++
1a3082
 1 file changed, 5 insertions(+)
1a3082
1a3082
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c
1a3082
index 6d35c6b13..948cd112d 100644
1a3082
--- a/cogl/cogl/cogl-framebuffer.c
1a3082
+++ b/cogl/cogl/cogl-framebuffer.c
1a3082
@@ -1482,6 +1482,11 @@ cogl_blit_framebuffer (CoglFramebuffer *src,
1a3082
       return FALSE;
1a3082
     }
1a3082
 
1a3082
+  /* Make sure any batched primitives get submitted to the driver
1a3082
+   * before blitting
1a3082
+   */
1a3082
+  _cogl_framebuffer_flush_journal (src);
1a3082
+
1a3082
   /* Make sure the current framebuffers are bound. We explicitly avoid
1a3082
      flushing the clip state so we can bind our own empty state */
1a3082
   _cogl_framebuffer_flush_state (dest,
1a3082
-- 
1a3082
2.21.0
1a3082