From cfa17cfaf2c53ba67b29acd6bee66a6f2628b8a1 Mon Sep 17 00:00:00 2001 From: client Date: Thu, 30 May 2024 22:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=8E=B7=E5=8F=96glx?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E8=8E=B7=E5=8F=96=E5=88=B0=E9=9D=9E=E7=A9=BA?= =?UTF-8?q?egl=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glx_context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/glx_context.c b/src/glx_context.c index a2464a9d..15ca4f9d 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -222,6 +222,11 @@ static int extensionSupportedGLX(const char* extension) static GLFWglproc getProcAddressGLX(const char* procname) { + // Avoid calling glXGetProcAddress() for EGL procs. + // We don't expect it to ever succeed, but somtimes it returns non-null anyway. + if (0 == strncmp(procname, "egl", 3)) { + return NULL; + } if (_glfw.glx.GetProcAddress) return _glfw.glx.GetProcAddress((const GLubyte*) procname); else if (_glfw.glx.GetProcAddressARB)