Compare commits

...

2 Commits

Author SHA1 Message Date
Iammea
0a011c811b
Merge cfa17cfaf2 into 8e15281d34 2025-10-09 22:22:28 -05:00
client
cfa17cfaf2 解决获取glx驱动获取到非空egl问题 2024-05-30 22:09:03 +08:00

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)