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

Function glXGetClientString

server/faker-glx.cpp:934–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932
933
934const char *glXGetClientString(Display *dpy, int name)
935{
936 TRY();
937
938 if(IS_EXCLUDED(dpy))
939 return _glXGetClientString(dpy, name);
940
941 if(name == GLX_EXTENSIONS) return getGLXExtensions();
942 else if(name == GLX_VERSION) return "1.4";
943 else if(name == GLX_VENDOR)
944 {
945 if(strlen(fconfig.glxvendor) > 0) return fconfig.glxvendor;
946 else return __APPNAME;
947 }
948
949 CATCH();
950 return NULL;
951}
952
953
954// For the specified 2D X server visual, return a property from the

Callers 2

extensionQueryTestFunction · 0.85
print_screen_infoFunction · 0.85

Calls 1

getGLXExtensionsFunction · 0.85

Tested by

no test coverage detected