Kaydet (Commit) 0bc3b393 authored tarafından Michael Meeks's avatar Michael Meeks

vcl: opengl - if we can't get the context we want, fallback properly.

Fixes crash on Linux / NVidea with GL manually enabled.

We can cope with a non-double-buffered context if we have to.

Change-Id: Ic7968b8576cfe0efb10718058bc69db5b4daef95
üst be0b3699
......@@ -728,10 +728,8 @@ bool OpenGLContext::ImplInit()
{
int best_fbc = -1;
GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc, mbUseDoubleBufferedRendering, false);
if (!pFBC)
return false;
if (best_fbc != -1)
if (pFBC && best_fbc != -1)
{
int pContextAttribs[] =
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment