mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Always use regular vsync instead of preferring adaptive vsync if supported
This commit is contained in:
@@ -240,15 +240,7 @@ bool Window::setContext(int fsaa, bool vsync)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set vertical synchronization.
|
// Set vertical synchronization.
|
||||||
if (vsync)
|
SDL_GL_SetSwapInterval(vsync ? 1 : 0);
|
||||||
{
|
|
||||||
// Prefer EXT_swap_control_tear (late swaps happen immediately),
|
|
||||||
// otherwise fall back to regular vsync.
|
|
||||||
if (SDL_GL_SetSwapInterval(-1) < 0 || SDL_GL_GetSwapInterval() != -1)
|
|
||||||
SDL_GL_SetSwapInterval(1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
SDL_GL_SetSwapInterval(0);
|
|
||||||
|
|
||||||
// Verify FSAA setting.
|
// Verify FSAA setting.
|
||||||
int buffers;
|
int buffers;
|
||||||
|
|||||||
Reference in New Issue
Block a user