From 2c5c08e562af560c2fc037eede4861c8362b0d90 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 16 Mar 2025 15:25:28 +0100 Subject: [PATCH] did not mean to push this --- src/sdl/ogl_sdl.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index dde5c269b..c60a78962 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -199,15 +199,7 @@ boolean OglSdlSurface(INT32 w, INT32 h) #endif } - if (cv_vidwait.value) - { - if (SDL_GL_SetSwapInterval(-1) == -1) // try async vsync - SDL_GL_SetSwapInterval(1); // normal vsync - } - else - SDL_GL_SetSwapInterval(0); - - //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)