falls back to glXGetFBConfigs, when ChooseFBConfigSGIX fails on TurboVNC + VirtualGL

This commit is contained in:
Andrew Corrigan 2013-12-02 22:40:25 -05:00
parent e3a278e2b5
commit fc9ec31ba5

View File

@ -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
{