OpenGL: disable vsync, atleast under Windows

This commit is contained in:
Arisotura
2019-06-20 16:00:12 +02:00
parent 77bf92a272
commit f59094e033
4 changed files with 42 additions and 0 deletions

View File

@ -2417,6 +2417,7 @@ void CreateMainWindow(bool opengl)
if (opengl_good)
{
uiGLMakeContextCurrent(GLContext);
uiGLSetVSync(0); // TODO: make configurable?
if (!GLScreen_Init()) opengl_good = false;
if (opengl_good)
{