diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index 4296be583..3eb023bc3 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -1519,6 +1519,9 @@ void setrefreshrate(void) SDL_SetWindowDisplayMode(sdl_window, &newmode); } + if (!newmode.refresh_rate) + newmode.refresh_rate = 60; + currentVBlankInterval = 1000/newmode.refresh_rate; }