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.