From ed55529ce850dc27a5dd0895e917ed5f3f6ede1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 27 Jul 2022 15:03:16 +0200 Subject: [PATCH] EGL: Add support for loading glvnd libOpenGL (cherry picked from commit 55aad3c37b67f17279378db52da0a3ab81bbf26d) --- README.md | 1 + src/egl_context.c | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index f40a6e59..1802d78b 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ information on what to include when reporting a bug. - [Wayland] Bugfix: Connecting a mouse after `glfwInit` would segfault (#1450) - [Linux] Bugfix: Joysticks without buttons were ignored (#2042,#2043) + [EGL] Added loading of glvnd `libOpenGL.so.0` where available for OpenGL ## Contact diff --git a/src/egl_context.c b/src/egl_context.c index 58d9557b..ec0ff49e 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -678,6 +678,7 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, #elif defined(__OpenBSD__) || defined(__NetBSD__) "libGL.so", #else + "libOpenGL.so.0", "libGL.so.1", #endif NULL