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

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