From fc9ec31ba5f53633e5a201b03e1729ecf9767aab Mon Sep 17 00:00:00 2001 From: Andrew Corrigan Date: Mon, 2 Dec 2013 22:40:25 -0500 Subject: [PATCH] falls back to glXGetFBConfigs, when ChooseFBConfigSGIX fails on TurboVNC + VirtualGL --- src/glx_context.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/glx_context.c b/src/glx_context.c index 47ae653f..a84de8b0 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -85,6 +85,16 @@ static GLboolean chooseFBConfig(const _GLFWfbconfig* desired, GLXFBConfig* resul _glfw.x11.screen, NULL, &nativeCount); + + // fallback, for when the above call fails running over TurboVNC + VirtualGL + if(!nativeCount) + { + nativeConfigs = glXGetFBConfigs(_glfw.x11.display, + _glfw.x11.screen, + &nativeCount); + + _glfw.glx.SGIX_fbconfig = GL_FALSE; + } } else {