Fix: incorrect handling of auto renderer for 1.17+

This commit is contained in:
Duy Tran Khanh committed 2023-01-20 19:19:47 +07:00
1 parent 642ce8f84d
commit 7220af520b
1 file changed
-2
-2
View File
@@ -376,8 +376,6 @@ void pojavSetWindowHint(int hint, int value) {
NSLog(@"GLFW: Unimplemented API 0x%x", value);
abort();
}
} else if (hint == GLFW_OPENGL_PROFILE || hint == GLFW_CONTEXT_VERSION_MAJOR) {
pojavInit_OpenGL();
} else if (strcmp(getenv("POJAV_RENDERER"), "auto")==0 && hint == GLFW_CONTEXT_VERSION_MAJOR && value >= 3) {
// Free unused gl4es library
void *renderer_handle = dlopen(RENDERER_NAME_GL4ES, RTLD_GLOBAL);