summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkglcontext-wayland.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2014-11-03 13:20:55 +0100
committerAlexander Larsson <alexl@redhat.com>2014-11-03 13:20:55 +0100
commit6fbc439fd79949fac2733107972785cef285ea71 (patch)
treec701b50f255a698c2260a887c88f4339ab349e8f /gdk/wayland/gdkglcontext-wayland.c
parent3656c21030eb26c2556dcaaf972903575c9de0ae (diff)
downloadgtk+-6fbc439fd79949fac2733107972785cef285ea71.tar.gz
GdkGLContext: Add display property
We need to use this in the code path where we make the context non-current during destroy, because at that point the window could be destroyed and gdk_window_get_display() would return NULL.
Diffstat (limited to 'gdk/wayland/gdkglcontext-wayland.c')
-rw-r--r--gdk/wayland/gdkglcontext-wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 4c80a802de..04d9094793 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -365,6 +365,7 @@ gdk_wayland_window_create_gl_context (GdkWindow *window,
g_print ("Created EGL context[%p]\n", ctx));
context = g_object_new (GDK_TYPE_WAYLAND_GL_CONTEXT,
+ "display", display,
"window", window,
"profile", profile,
"shared-context", share,