mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
parent
4316169d99
commit
ad464817dd
1 changed files with 3 additions and 1 deletions
|
|
@ -186,13 +186,15 @@ static void Impl_SetWindowIcon(void);
|
|||
|
||||
static void Impl_SetSoftwareVsync(int vsync)
|
||||
{
|
||||
static int oldvsync = 0;
|
||||
#if SDL_VERSION_ATLEAST(2,0,18)
|
||||
static int oldvsync = 0;
|
||||
if (oldvsync != vsync)
|
||||
{
|
||||
SDL_RenderSetVSync(renderer, vsync);
|
||||
}
|
||||
oldvsync = vsync;
|
||||
#else
|
||||
(void)vsync;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue