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.
This commit is contained in:
Alexander Larsson
2014-11-03 13:20:55 +01:00
parent 3656c21030
commit 6fbc439fd7
4 changed files with 65 additions and 5 deletions

View File

@ -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,