mirror of https://github.com/AxioDL/boo.git
Generic VSync fix
This commit is contained in:
parent
742e062cf2
commit
a402e34e8a
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue