mcst-linux-kernel/patches-2024.06.26/waffle-1.5.2/0005-GLX_ARB_create_context...

32 lines
1.4 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 9295c18b139ebe0ac24f276a338d607b21fbe931 Mon Sep 17 00:00:00 2001
Date: Wed, 11 May 2016 14:36:16 +0300
Link: https://bugs.freedesktop.org/show_bug.cgi?id=89586#c20
Subject: Отсутствие GLX_ARB_create_context при OpenGL <3.0х
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Переделываем по рекомендации из
https://bugs.freedesktop.org/show_bug.cgi?id=89586#c20
Ослабляем требование к расширению GLX_ARB_create_context, оно может отсутствовать не только для OpenGL 1.0, но и для версий <3.0
---
src/waffle/glx/glx_config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/waffle/glx/glx_config.c b/src/waffle/glx/glx_config.c
index 7792aa0..d759cb9 100644
--- a/src/waffle/glx/glx_config.c
+++ b/src/waffle/glx/glx_config.c
@@ -70,7 +70,7 @@ glx_config_check_context_attrs(struct glx_display *dpy,
switch (attrs->context_api) {
case WAFFLE_CONTEXT_OPENGL:
- if (!wcore_config_attrs_version_eq(attrs, 10) && !dpy->ARB_create_context) {
+ if (wcore_config_attrs_version_ge(attrs, 30) && !dpy->ARB_create_context) {
wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
"GLX_ARB_create_context is required in order to "
"request an OpenGL version not equal to the default "
--
2.16.4