From 7220af520bd32a745b8a83372c3229dd8e82cd10 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Fri, 20 Jan 2023 19:19:47 +0700 Subject: [PATCH] Fix: incorrect handling of auto renderer for 1.17+ --- Natives/egl_bridge.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/Natives/egl_bridge.m b/Natives/egl_bridge.m index 2f7b473a..372756ca 100644 --- a/Natives/egl_bridge.m +++ b/Natives/egl_bridge.m @@ -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);