[gtk/wip.win32.fixes: 12/23] macosglcontext: Do not rely on default from get_required_version
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip.win32.fixes: 12/23] macosglcontext: Do not rely on default from get_required_version
- Date: Wed, 1 Jun 2022 02:26:59 +0000 (UTC)
commit 9419abadd8f263faa4f51fb7a01205dae06043fa
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date: Sat May 28 01:01:19 2022 +0200
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.
gdk/macos/gdkmacosglcontext.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c
index ff7ae975c8..069d138b83 100644
--- a/gdk/macos/gdkmacosglcontext.c
+++ b/gdk/macos/gdkmacosglcontext.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]