Add GdkGLContext::profile

This commit is contained in:
Alexander Larsson
2014-10-30 12:42:37 +01:00
parent 398697eb2f
commit 0eb2fb01fd
4 changed files with 55 additions and 0 deletions

View File

@ -326,6 +326,9 @@ gdk_wayland_window_create_gl_context (GdkWindow *window,
return NULL;
}
if (profile == GDK_GL_PROFILE_DEFAULT)
profile = GDK_GL_PROFILE_LEGACY;
if (profile == GDK_GL_PROFILE_3_2_CORE &&
!display_wayland->have_egl_khr_create_context)
{
@ -363,6 +366,7 @@ gdk_wayland_window_create_gl_context (GdkWindow *window,
context = g_object_new (GDK_TYPE_WAYLAND_GL_CONTEXT,
"window", window,
"profile", profile,
"shared-context", share,
NULL);