mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-22 16:02:29 +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 void Impl_SetSoftwareVsync(int vsync)
|
||||||
{
|
{
|
||||||
static int oldvsync = 0;
|
|
||||||
#if SDL_VERSION_ATLEAST(2,0,18)
|
#if SDL_VERSION_ATLEAST(2,0,18)
|
||||||
|
static int oldvsync = 0;
|
||||||
if (oldvsync != vsync)
|
if (oldvsync != vsync)
|
||||||
{
|
{
|
||||||
SDL_RenderSetVSync(renderer, vsync);
|
SDL_RenderSetVSync(renderer, vsync);
|
||||||
}
|
}
|
||||||
oldvsync = vsync;
|
oldvsync = vsync;
|
||||||
|
#else
|
||||||
|
(void)vsync;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue