This commit is contained in:
Iammea 2025-12-12 08:22:11 -06:00 committed by GitHub
commit 869f359b6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)