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

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