mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
falls back to glXGetFBConfigs, when ChooseFBConfigSGIX fails on TurboVNC + VirtualGL
This commit is contained in:
parent
e3a278e2b5
commit
fc9ec31ba5
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user