MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / glXQueryServerString

Function glXQueryServerString

server/faker-glx.cpp:2118–2135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2116// Same as glXGetClientString() in our case
2117
2118const char *glXQueryServerString(Display *dpy, int screen, int name)
2119{
2120 TRY();
2121
2122 if(IS_EXCLUDED(dpy))
2123 return _glXQueryServerString(dpy, screen, name);
2124
2125 if(name == GLX_EXTENSIONS) return getGLXExtensions();
2126 else if(name == GLX_VERSION) return "1.4";
2127 else if(name == GLX_VENDOR)
2128 {
2129 if(strlen(fconfig.glxvendor) > 0) return fconfig.glxvendor;
2130 else return __APPNAME;
2131 }
2132
2133 CATCH();
2134 return NULL;
2135}
2136
2137
2138// Hand off to the 3D X server without modification.

Callers 4

extensionQueryTestFunction · 0.85
QueryFBConfigFunction · 0.85
QueryPbuffersFunction · 0.85
print_screen_infoFunction · 0.85

Calls 1

getGLXExtensionsFunction · 0.85

Tested by

no test coverage detected