mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] opengl: made vsync option function again
This commit is contained in:
parent
313a4122bc
commit
5305ec5dd1
@ -63,7 +63,6 @@ typedef struct LG_RendererParams
|
|||||||
{
|
{
|
||||||
TTF_Font * font;
|
TTF_Font * font;
|
||||||
bool showFPS;
|
bool showFPS;
|
||||||
bool vsync;
|
|
||||||
}
|
}
|
||||||
LG_RendererParams;
|
LG_RendererParams;
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user