do not load/unload opengl library when SDL_WINDOW_METAL flag is changed

This commit is contained in:
pionere 2022-01-08 12:03:57 +01:00 committed by Ryan C. Gordon
parent f5911bdc59
commit e11ba0f5d9
1 changed files with 0 additions and 11 deletions

View File

@ -1867,17 +1867,6 @@ SDL_RecreateWindow(SDL_Window * window, Uint32 flags)
need_gl_load = SDL_TRUE; need_gl_load = SDL_TRUE;
} }
if ((window->flags & SDL_WINDOW_METAL) != (flags & SDL_WINDOW_METAL)) {
if (flags & SDL_WINDOW_METAL) {
need_gl_load = SDL_TRUE;
} else {
need_gl_unload = SDL_TRUE;
}
} else if (window->flags & SDL_WINDOW_METAL) {
need_gl_unload = SDL_TRUE;
need_gl_load = SDL_TRUE;
}
if ((window->flags & SDL_WINDOW_VULKAN) != (flags & SDL_WINDOW_VULKAN)) { if ((window->flags & SDL_WINDOW_VULKAN) != (flags & SDL_WINDOW_VULKAN)) {
if (flags & SDL_WINDOW_VULKAN) { if (flags & SDL_WINDOW_VULKAN) {
need_vulkan_load = SDL_TRUE; need_vulkan_load = SDL_TRUE;