From e11ba0f5d9df9714464b78dca156fbfa862b468b Mon Sep 17 00:00:00 2001 From: pionere Date: Sat, 8 Jan 2022 12:03:57 +0100 Subject: [PATCH] do not load/unload opengl library when SDL_WINDOW_METAL flag is changed --- src/video/SDL_video.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index e3977831a..1ab98355a 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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;