Generic VSync fix

This commit is contained in:
Phillip Stephens 2015-11-17 21:58:37 -08:00
parent 742e062cf2
commit a402e34e8a
1 changed files with 4 additions and 1 deletions

View File

@ -342,7 +342,10 @@ public:
if (!vsyncDisp) if (!vsyncDisp)
Log.report(LogVisor::FatalError, "unable to open new vsync display"); Log.report(LogVisor::FatalError, "unable to open new vsync display");
vsyncCtx = glXCreateContextAttribsARB(vsyncDisp, m_fbconfig, nullptr, True, ContextAttribs); static int attributeList[] = { GLX_RGBA, GLX_DOUBLEBUFFER, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, None };
XVisualInfo *vi = glXChooseVisual(vsyncDisp, DefaultScreen(vsyncDisp),attributeList);
vsyncCtx = glXCreateContext(vsyncDisp, vi, nullptr, True);
if (!vsyncCtx) if (!vsyncCtx)
Log.report(LogVisor::FatalError, "unable to make new vsync GLX context"); Log.report(LogVisor::FatalError, "unable to make new vsync GLX context");