Update egl_context.c

This commit is contained in:
ShirosakiMio 2022-12-07 21:22:22 +08:00
parent a3a09d5c8a
commit c8ba124466
1 changed files with 1 additions and 1 deletions

View File

@ -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());