mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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.
This commit is contained in:
parent
d4f8a80f2a
commit
f4f0daa113
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user