summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-08-08 02:17:08 +0200
committerBenjamin Otte <otte@redhat.com>2021-08-08 02:17:08 +0200
commit80e6f1ca8c4ade531c95e8186c32b69477baf2df (patch)
tree44ad90016dad2367cdacd67e5501deef2f899dd1 /gsk
parent882855f8658bb3efc8d450f8fc2a1c4bd0014c0c (diff)
downloadgtk+-80e6f1ca8c4ade531c95e8186c32b69477baf2df.tar.gz
ngl: Make current when unrealizing
The profiler (at least) discards GL objects and we want to discard them on the right context.
Diffstat (limited to 'gsk')
-rw-r--r--gsk/ngl/gsknglrenderer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsk/ngl/gsknglrenderer.c b/gsk/ngl/gsknglrenderer.c
index 5f8a683b1e..cdb6717043 100644
--- a/gsk/ngl/gsknglrenderer.c
+++ b/gsk/ngl/gsknglrenderer.c
@@ -137,9 +137,11 @@ gsk_ngl_renderer_unrealize (GskRenderer *renderer)
g_assert (GSK_IS_NGL_RENDERER (renderer));
+ gdk_gl_context_make_current (self->context);
+
g_clear_object (&self->driver);
- g_clear_object (&self->context);
g_clear_object (&self->command_queue);
+ g_clear_object (&self->context);
}
static cairo_region_t *