Verified Commit f4f0daa1 authored by Pablo Correa Gomez's avatar Pablo Correa Gomez
Browse files

macosglcontext: Do not rely on default from get_required_version

get_required_version cannot warranty to return any default. Instead,
fetch the user requisites clipped by the requirements in our backend.
parent d4f8a80f
......@@ -378,7 +378,10 @@ gdk_macos_gl_context_real_realize (GdkGLContext *context,
existing = CGLGetCurrentContext ();
gdk_gl_context_get_required_version (context, &major, &minor);
gdk_gl_context_get_clipped_version (context,
GDK_GL_MIN_GL_VERSION_MAJOR,
GDK_GL_MIN_GL_VERSION_MINOR,
&major, &minor);
display = gdk_gl_context_get_display (context);
shared = gdk_display_get_gl_context (display);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment