summaryrefslogtreecommitdiff
path: root/gsk/ngl/gsknglrenderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsk/ngl/gsknglrenderer.c')
-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 *