diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-01-17 19:49:05 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-17 19:49:05 -0500 |
commit | 0429008b165d3af4db54fdc59967595e8d91e396 (patch) | |
tree | e95a133a8985554c297aeec59ed9d7151f4b689b /gtk/gtkglarea.c | |
parent | 6ea827cde5b97d1681d269a8200c26189a4213bd (diff) | |
download | gtk+-0429008b165d3af4db54fdc59967595e8d91e396.tar.gz |
glarea: Always delete textures on unrealize
We need to make the context current for deleting
textures as well, so just do it unconditionally.
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r-- | gtk/gtkglarea.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c index 8e3cf4cc75..22348ee01c 100644 --- a/gtk/gtkglarea.c +++ b/gtk/gtkglarea.c @@ -623,13 +623,9 @@ gtk_gl_area_unrealize (GtkWidget *widget) if (priv->context != NULL) { - if (priv->have_buffers) - { - gtk_gl_area_make_current (area); - gtk_gl_area_delete_buffers (area); - } - - gtk_gl_area_delete_textures (area); + gtk_gl_area_make_current (area); + gtk_gl_area_delete_buffers (area); + gtk_gl_area_delete_textures (area); /* Make sure to unset the context if current */ if (priv->context == gdk_gl_context_get_current ()) |