[gtk+/wip/otte/snapshot: 26/30] window: Unrealize renderer last
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/snapshot: 26/30] window: Unrealize renderer last
- Date: Tue, 15 Nov 2016 06:33:49 +0000 (UTC)
commit 4a2fa267dec0024cfacce7e35df2b72264e834b7
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 15 06:43:47 2016 +0100
window: Unrealize renderer last
We want to unrealize the renderer only after all widgets have been
unrealized. Otherwise, the widgets cannot release rendering resources
like textures.
gtk/gtkwindow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 9854f2e..100bcab 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7124,9 +7124,6 @@ gtk_window_unrealize (GtkWidget *widget)
GList *link;
gint i;
- if (priv->renderer != NULL)
- gsk_renderer_unrealize (priv->renderer);
-
/* On unrealize, we reset the size of the window such
* that we will re-apply the default sizing stuff
* next time we show the window.
@@ -7178,6 +7175,9 @@ gtk_window_unrealize (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_window_parent_class)->unrealize (widget);
priv->hardcoded_window = NULL;
+
+ if (priv->renderer != NULL)
+ gsk_renderer_unrealize (priv->renderer);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]