mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
video: Don't attempt to reconfigure external windows
This commit is contained in:
@@ -2643,6 +2643,11 @@ static bool SDL_ReconfigureWindowInternal(SDL_Window *window, SDL_WindowFlags fl
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't attempt to reconfigure external windows.
|
||||||
|
if (window->flags & SDL_WINDOW_EXTERNAL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Only attempt to reconfigure if the window has no existing graphics flags.
|
// Only attempt to reconfigure if the window has no existing graphics flags.
|
||||||
if (window->flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_METAL | SDL_WINDOW_VULKAN)) {
|
if (window->flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_METAL | SDL_WINDOW_VULKAN)) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user