[gtk] Fix flickery hover



commit fb84fe706561c1c4d34a81395a02ff90e3ef9e97
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 12 22:45:24 2020 -0500

    Fix flickery hover
    
    Commit 47c44644b109e0 was a bit overzealous in fixing
    compiler warnings. We still need to call collect_textures,
    even if we don't need the number that it returns.

 gsk/gl/gskglrenderer.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 066fbf0ae2..015c0984f2 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2897,6 +2897,8 @@ gsk_gl_renderer_unrealize (GskRenderer *renderer)
 static void
 gsk_gl_renderer_clear_tree (GskGLRenderer *self)
 {
+  int removed_textures;
+
   if (self->gl_context == NULL)
     return;
 
@@ -2904,9 +2906,9 @@ gsk_gl_renderer_clear_tree (GskGLRenderer *self)
 
   ops_reset (&self->op_builder);
 
-#ifdef G_ENABLE_DEBUG
-  int removed_textures = gsk_gl_driver_collect_textures (self->gl_driver);
+  removed_textures = gsk_gl_driver_collect_textures (self->gl_driver);
 
+#ifdef G_ENABLE_DEBUG
   GSK_RENDERER_NOTE (GSK_RENDERER (self), OPENGL, g_message ("Collected: %d textures", removed_textures));
 #endif
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]