Avoid unnescessarily updating fullscreen display modes

(cherry picked from commit e90bdfb5ea)
This commit is contained in:
meta-legend
2026-07-07 22:22:24 -05:00
committed by Sam Lantinga
parent 4f629701fb
commit af5b015b21

View File

@@ -1509,9 +1509,6 @@ const SDL_DisplayMode *SDL_GetCurrentDisplayMode(SDL_DisplayID displayID)
CHECK_DISPLAY_MAGIC(display, NULL);
// Make sure our mode list is updated
SDL_UpdateFullscreenDisplayModes(display);
return display->current_mode;
}