Avoid unnescessarily updating fullscreen display modes

This commit is contained in:
meta-legend
2026-07-07 22:22:24 -05:00
committed by Sam Lantinga
parent 5403934fd3
commit e90bdfb5ea

View File

@@ -1519,9 +1519,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;
}