From c8ba1244664ddaa94a89307bcee85f57f3af1a5f Mon Sep 17 00:00:00 2001 From: ShirosakiMio <852468399@qq.com> Date: Wed, 7 Dec 2022 21:22:22 +0800 Subject: [PATCH] Update egl_context.c --- FCLauncher/src/main/jni/glfw/egl_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FCLauncher/src/main/jni/glfw/egl_context.c b/FCLauncher/src/main/jni/glfw/egl_context.c index 55254e97..27a24b5d 100644 --- a/FCLauncher/src/main/jni/glfw/egl_context.c +++ b/FCLauncher/src/main/jni/glfw/egl_context.c @@ -414,7 +414,7 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, EGL_NONE }; 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) { _glfwInputError(GLFW_API_UNAVAILABLE, "eglChooseConfig() failed: %04x", eglGetError());