mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 23:43:15 +00:00
Initialize context creation APIs on demand
This commit is contained in:
@@ -253,6 +253,9 @@ GLFWbool _glfwInitGLX(void)
|
||||
NULL
|
||||
};
|
||||
|
||||
if (_glfw.glx.handle)
|
||||
return GLFW_TRUE;
|
||||
|
||||
for (i = 0; sonames[i]; i++)
|
||||
{
|
||||
_glfw.glx.handle = dlopen(sonames[i], RTLD_LAZY | RTLD_GLOBAL);
|
||||
|
||||
Reference in New Issue
Block a user