From 32970f75b23a6b68a3349ab8e03e9c559afe4f76 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 31 Dec 2021 11:20:30 +0100 Subject: [PATCH] remove useless condition --- window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/window.c b/window.c index 3f457d5..51c1fcc 100644 --- a/window.c +++ b/window.c @@ -127,8 +127,7 @@ void init(void) { enable_surface_option(_cube, SO_USE_LIGHTING); /* si _use_vsync != 0, on active la synchronisation verticale */ - if(_use_vsync) - SDL_GL_SetSwapInterval(1); + SDL_GL_SetSwapInterval(_use_vsync); /* mettre en place la fonction à appeler en cas de sortie */ atexit(sortie);