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

@ -1043,6 +1043,7 @@ gdk_x11_window_create_gl_context (GdkWindow *window,
/* GDK_GL_PROFILE_DEFAULT is currently
* equivalent to the LEGACY profile
*/
profile = GDK_GL_PROFILE_LEGACY;
glx_context = create_gl_context (display, config, share);
}
@ -1119,6 +1120,7 @@ gdk_x11_window_create_gl_context (GdkWindow *window,
context = g_object_new (GDK_TYPE_X11_GL_CONTEXT,
"window", window,
"profile", profile,
"shared-context", share,
NULL);