From 5305ec5dd1bc7ee47d0f4ba76789951903c93048 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 17 Dec 2017 23:24:58 +1100 Subject: [PATCH] [client] opengl: made vsync option function again --- client/lg-renderer.h | 1 - client/renderers/opengl.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/lg-renderer.h b/client/lg-renderer.h index c456f76a..95733228 100644 --- a/client/lg-renderer.h +++ b/client/lg-renderer.h @@ -63,7 +63,6 @@ typedef struct LG_RendererParams { TTF_Font * font; bool showFPS; - bool vsync; } LG_RendererParams; diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index d388b8ca..022669a7 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -194,7 +194,7 @@ bool lgr_opengl_configure(void * opaque, SDL_Window *window, const LG_RendererFo return false; } - SDL_GL_SetSwapInterval(this->params.vsync ? 1 : 0); + SDL_GL_SetSwapInterval(this->opt.vsync ? 1 : 0); // check if the GPU supports GL_ARB_buffer_storage first // there is no advantage to this renderer if it is not present.