diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index b07e29463..ca81b8043 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -710,6 +710,9 @@ static void I_CheckDesktopRes(void) return; } + desktopwidth = 0; + desktopheight = 0; + currentDisplayIndex = SDL_GetWindowDisplayIndex(window); // No valid index