mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
add option to uncap fps, and fix #1470
This commit is contained in:
@@ -737,7 +737,7 @@ void platform_refresh_video()
|
||||
|
||||
if (gConfigGeneral.hardware_display) {
|
||||
if (gRenderer == NULL)
|
||||
gRenderer = SDL_CreateRenderer(gWindow, -1, SDL_RENDERER_ACCELERATED);
|
||||
gRenderer = SDL_CreateRenderer(gWindow, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
|
||||
|
||||
if (gBufferTexture != NULL)
|
||||
SDL_DestroyTexture(gBufferTexture);
|
||||
|
||||
Reference in New Issue
Block a user