mirror of
https://github.com/encounter/SDL.git
synced 2025-05-21 14:51:27 +00:00
do not load/unload opengl library when SDL_WINDOW_METAL flag is changed
This commit is contained in:
parent
f5911bdc59
commit
e11ba0f5d9
@ -1867,17 +1867,6 @@ SDL_RecreateWindow(SDL_Window * window, Uint32 flags)
|
||||
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 (flags & SDL_WINDOW_VULKAN) {
|
||||
need_vulkan_load = SDL_TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user