More fixes

Rendering now works if it is on the main thread
This commit is contained in:
Curi0 2017-10-02 17:29:32 +05:30
parent 49ded3c18e
commit e1c09aa2b5
2 changed files with 3 additions and 7 deletions

View File

@ -585,12 +585,6 @@ GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle)
_GLFW_REQUIRE_INIT();
if (window && window->context.client == GLFW_NO_API)
{
_glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
return;
}
if (previous)
{
if (!window || window->context.source != previous->context.source)

View File

@ -311,6 +311,8 @@ GLFWbool _glfwInitEGL(void)
"libEGL.dylib",
#elif defined(__CYGWIN__)
"libEGL-1.so",
#elif defined(_GLFW_ANDROID)
"libEGL.so",
#else
"libEGL.so.1",
#endif
@ -465,7 +467,6 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
EGLConfig config;
EGLContext share = NULL;
int index = 0;
if (!_glfw.egl.display)
{
_glfwInputError(GLFW_API_UNAVAILABLE, "EGL: API not available");
@ -635,6 +636,7 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
"libGLES_CM.so",
#else
"libGLESv1_CM.so.1",
"libGLES_CM.so.1"
#endif
NULL
};