[gtk] gsk: Fix the compiler warning differently
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gsk: Fix the compiler warning differently
- Date: Thu, 13 Feb 2020 15:43:36 +0000 (UTC)
commit a66ed7c461b233e725f881ceca725301aa644efa
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 13 10:42:21 2020 -0500
gsk: Fix the compiler warning differently
gsk/gl/gskglrenderer.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 015c0984f2..f98527fb98 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2897,8 +2897,6 @@ gsk_gl_renderer_unrealize (GskRenderer *renderer)
static void
gsk_gl_renderer_clear_tree (GskGLRenderer *self)
{
- int removed_textures;
-
if (self->gl_context == NULL)
return;
@@ -2906,10 +2904,11 @@ gsk_gl_renderer_clear_tree (GskGLRenderer *self)
ops_reset (&self->op_builder);
- removed_textures = gsk_gl_driver_collect_textures (self->gl_driver);
-
#ifdef G_ENABLE_DEBUG
+ int removed_textures = gsk_gl_driver_collect_textures (self->gl_driver);
GSK_RENDERER_NOTE (GSK_RENDERER (self), OPENGL, g_message ("Collected: %d textures", removed_textures));
+#else
+ gsk_gl_driver_collect_textures (self->gl_driver);
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]