forked from AuroraMiddleware/gtk
Fix flickery hover
Commit 47c44644b1
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.
This commit is contained in:
parent
9be8f8cf43
commit
fb84fe7065
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user