| 34 | |
| 35 | |
| 36 | static 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 | |
| 56 | void setWMAtom(Display *dpy, Window win, faker::VirtualWin *vw) |
nothing calls this directly
no test coverage detected