[client] opengl: made vsync option function again
This commit is contained in:
1 parent
313a4122bc
commit
5305ec5dd1
2 files changed
+1
-2
No files matched your search
@@ -63,7 +63,6 @@ typedef struct LG_RendererParams
|
||||
{
|
||||
TTF_Font * font;
|
||||
bool showFPS;
|
||||
bool vsync;
|
||||
}
|
||||
LG_RendererParams;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user