mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
video: Don't attempt to reconfigure external windows
This commit is contained in:
parent
78bea90b18
commit
5972b5295d
1 changed files with 5 additions and 0 deletions
|
|
@ -2643,6 +2643,11 @@ static bool SDL_ReconfigureWindowInternal(SDL_Window *window, SDL_WindowFlags fl
|
|||
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.
|
||||
if (window->flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_METAL | SDL_WINDOW_VULKAN)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue