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

Function getFBConfigs

server/glxvisual.cpp:796–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794
795
796VGLFBConfig *getFBConfigs(Display *dpy, int screen, int &nElements)
797{
798 VGLFBConfig *configs = NULL;
799
800 if(!dpy || screen < 0) return NULL;
801
802 buildCfgAttribTable(dpy, screen);
803 GET_CA_TABLE()
804
805 configs = (VGLFBConfig *)calloc(caEntries, sizeof(VGLFBConfig));
806 if(!configs) return NULL;
807
808 nElements = caEntries;
809 for(int i = 0; i < nElements; i++)
810 configs[i] = &ca[i];
811
812 return configs;
813}
814
815
816static int compareFBConfig(const void *arg1, const void *arg2)

Callers 2

glXGetFBConfigsFunction · 0.85
chooseFBConfigFunction · 0.85

Calls 1

buildCfgAttribTableFunction · 0.85

Tested by

no test coverage detected