diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-01-06 12:10:39 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-01-06 12:16:04 +0000 |
commit | 0bc3b393c681403e1e53ef3e5b46d169d509bd8b (patch) | |
tree | 2b2786ce7463853a18e40278314c474e60d83df1 /vcl/source/opengl | |
parent | be0b36992969ec5b372fa6d11a00f573073d00b2 (diff) |
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
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index db51515f052e..d70d27e7d242 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -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[] = { |