From: Benjamin Otte Date: Sun, 3 Oct 2021 05:20:43 +0000 (+0200) Subject: glcontext: The content cannot be the current context X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~5^2~258^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=032eb1507984a88d455c31787b411375903e9400;p=gtk4.git glcontext: The content cannot be the current context The current context owns a reference to the context, so it cannot be disposed. --- diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index a692a4f5ef..663d9f1d9c 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -164,14 +164,9 @@ static void gdk_gl_context_dispose (GObject *gobject) { GdkGLContext *context = GDK_GL_CONTEXT (gobject); - MaskedContext *current; gdk_gl_context_clear_old_updated_area (context); - current = g_private_get (&thread_current_context); - if (unmask_context (current) == context) - g_private_replace (&thread_current_context, NULL); - G_OBJECT_CLASS (gdk_gl_context_parent_class)->dispose (gobject); }