Update egl_context.c
This commit is contained in:
parent
a3a09d5c8a
commit
c8ba124466
|
@ -414,7 +414,7 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
|
||||||
EGL_NONE
|
EGL_NONE
|
||||||
};
|
};
|
||||||
EGLint num_configs = 0;
|
EGLint num_configs = 0;
|
||||||
const EGLint egl_context_attributes[] = { EGL_CONTEXT_CLIENT_VERSION, getenv("LIBGL_ES"), EGL_NONE };
|
const EGLint egl_context_attributes[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };
|
||||||
if (eglChooseConfig(_glfw.egl.display, egl_attributes, NULL, 0, &num_configs) != GLFW_TRUE) {
|
if (eglChooseConfig(_glfw.egl.display, egl_attributes, NULL, 0, &num_configs) != GLFW_TRUE) {
|
||||||
_glfwInputError(GLFW_API_UNAVAILABLE, "eglChooseConfig() failed: %04x",
|
_glfwInputError(GLFW_API_UNAVAILABLE, "eglChooseConfig() failed: %04x",
|
||||||
eglGetError());
|
eglGetError());
|
||||||
|
|
Loading…
Reference in New Issue