Fix -Wunused-variable and -Wunused-parameter

blame 2304ef28a5
This commit is contained in:
James R 2022-11-19 01:39:51 -08:00
parent 4316169d99
commit ad464817dd

View file

@ -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
}