diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 45878148a6..ea81e12d16 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1124,6 +1124,11 @@ const SDL_DisplayMode *SDL_GetCurrentDisplayMode(SDL_DisplayID displayID) static int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay *display, SDL_DisplayMode *mode) { + /* Mode switching is being emulated per-window; nothing to do and cannot fail. */ + if (ModeSwitchingEmulated(_this)) { + return 0; + } + if (!mode) { mode = &display->desktop_mode; }