Initialize context creation APIs on demand

This commit is contained in:
Camilla Berglund
2016-07-20 12:52:06 +02:00
parent 52d801bd19
commit d5e00e6b0f
14 changed files with 28 additions and 17 deletions
+5
View File
@@ -296,6 +296,9 @@ GLFWbool _glfwInitEGL(void)
NULL
};
if (_glfw.egl.handle)
return GLFW_TRUE;
for (i = 0; sonames[i]; i++)
{
_glfw.egl.handle = _glfw_dlopen(sonames[i]);
@@ -358,6 +361,8 @@ GLFWbool _glfwInitEGL(void)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"EGL: Failed to load required entry points");
_glfwTerminateEGL();
return GLFW_FALSE;
}