[gtk/wip/otte/gl-hdr: 9/12] glcontext: The content cannot be the current context
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gl-hdr: 9/12] glcontext: The content cannot be the current context
- Date: Mon, 4 Oct 2021 01:28:43 +0000 (UTC)
commit 79a5d51b6315a8e94dd31d5c94b8ff60438697e9
Author: Benjamin Otte <otte redhat com>
Date: Sun Oct 3 07:20:43 2021 +0200
glcontext: The content cannot be the current context
The current context owns a reference to the context, so it cannot be
disposed.
gdk/gdkglcontext.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 19150361fa..2b292381c7 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]