testing smth
yes -1 is valid for this sometimes
This commit is contained in:
1 parent
7d9609be76
commit
9e7e4d5fe7
2 files changed
+2
-8
No files matched your search
@@ -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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user