mirror of
https://github.com/glfw/glfw.git
synced 2025-10-17 21:42:11 +00:00
Compare commits
2 Commits
0a011c811b
...
66cd6e686e
Author | SHA1 | Date | |
---|---|---|---|
|
66cd6e686e | ||
|
cfa17cfaf2 |
@ -222,6 +222,11 @@ static int extensionSupportedGLX(const char* extension)
|
|||||||
|
|
||||||
static GLFWglproc getProcAddressGLX(const char* procname)
|
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)
|
if (_glfw.glx.GetProcAddress)
|
||||||
return _glfw.glx.GetProcAddress((const GLubyte*) procname);
|
return _glfw.glx.GetProcAddress((const GLubyte*) procname);
|
||||||
else if (_glfw.glx.GetProcAddressARB)
|
else if (_glfw.glx.GetProcAddressARB)
|
||||||
|
Loading…
Reference in New Issue
Block a user