mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-23 02:57:31 -04:00
fix(EGL): Handle window recreations with different APIs
Should fix Mojang Vulkan falling back to opengl
This commit is contained in:
@@ -209,6 +209,12 @@ EXTERNAL_API void pojavSetWindowHint(int hint, int value) {
|
||||
// pojavInitVulkan();
|
||||
break;
|
||||
case GLFW_OPENGL_API:
|
||||
const char *renderer = getenv("AMETHYST_RENDERER");
|
||||
if (strncmp("opengles", renderer, 8) == 0) {
|
||||
pojav_environ->config_renderer = RENDERER_GL4ES;
|
||||
} else if (strcmp(renderer, "vulkan_zink") == 0) {
|
||||
pojav_environ->config_renderer = RENDERER_VK_ZINK;
|
||||
}
|
||||
/* Nothing to do: initialization is called in pojavCreateContext */
|
||||
// pojavInitOpenGL();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user