[client] opengl: made vsync option function again

This commit is contained in:
Geoffrey McRae 2017-12-17 23:24:58 +11:00
parent 313a4122bc
commit 5305ec5dd1
2 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,6 @@ typedef struct LG_RendererParams
{ {
TTF_Font * font; TTF_Font * font;
bool showFPS; bool showFPS;
bool vsync;
} }
LG_RendererParams; LG_RendererParams;

View File

@ -194,7 +194,7 @@ bool lgr_opengl_configure(void * opaque, SDL_Window *window, const LG_RendererFo
return false; 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 // check if the GPU supports GL_ARB_buffer_storage first
// there is no advantage to this renderer if it is not present. // there is no advantage to this renderer if it is not present.