testing smth

yes -1 is valid for this sometimes
This commit is contained in:
Alug committed 2024-03-27 12:11:45 +01:00
1 parent 7d9609be76
commit 9e7e4d5fe7
2 files changed
+2 -8

No files matched your search

-6
View File
@@ -2429,12 +2429,6 @@ static void Impl_SetVsync(void)
SDL_RenderSetVSync(renderer, cv_vidwait.value ? 1 : 0);
#endif
}
#ifdef HWRENDER
else if (rendermode == render_opengl && sdlglcontext != NULL && SDL_GL_GetCurrentContext() == sdlglcontext)
{
SDL_GL_SetSwapInterval(cv_vidwait.value ? 1 : 0);
}
#endif
}
#endif
+2 -2
View File
@@ -163,7 +163,7 @@ boolean OglSdlSurface(INT32 w, INT32 h)
granisotropicmode_cons_t[1].value = maximumAnisotropy;
SDL_GL_SetSwapInterval(cv_vidwait.value ? 1 : 0);
SDL_GL_SetSwapInterval(cv_vidwait.value ? -1 : 0);
// The screen textures need to be flushed if the width or height change so that they be remade for the correct size
if (screen_width != w || screen_height != h)
@@ -203,7 +203,7 @@ void OglSdlFinishUpdate(boolean waitvbl)
int sdlw, sdlh;
if (oldwaitvbl != waitvbl)
{
SDL_GL_SetSwapInterval(waitvbl ? 1 : 0);
SDL_GL_SetSwapInterval(waitvbl ? -1 : 0);
}
oldwaitvbl = waitvbl;