MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / VGLFBConfig matchConfig

Function VGLFBConfig matchConfig

server/faker-glx.cpp:36–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36static INLINE VGLFBConfig matchConfig(Display *dpy, XVisualInfo *vis)
37{
38 VGLFBConfig config = 0;
39
40 if(!dpy || !vis) return 0;
41
42 // If the visual was obtained from glXChooseVisual() or
43 // glXGetVisualFromFBConfig(), then it should have a corresponding FB config
44 // in the visual hash.
45 if(!(config = VISHASH.getConfig(dpy, vis)))
46 {
47 // Punt. We can't figure out where the visual came from, so return the
48 // default FB config from the visual attribute table.
49 config = glxvisual::getDefaultFBConfig(dpy, vis->screen, vis->visualid);
50 if(config) config->visualID = vis->visualid;
51 }
52 return config;
53}
54
55
56void setWMAtom(Display *dpy, Window win, faker::VirtualWin *vw)

Callers

nothing calls this directly

Calls 2

getDefaultFBConfigFunction · 0.85
getConfigMethod · 0.80

Tested by

no test coverage detected