mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +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,
|
_glfw.x11.screen,
|
||||||
NULL,
|
NULL,
|
||||||
&nativeCount);
|
&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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user