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

Method initVW

server/WindowHash.h:60–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 VirtualWin *initVW(Display *dpy, Window win, VGLFBConfig config)
61 {
62 if(!dpy || !win || !config) THROW("Invalid argument");
63 HashEntry *ptr = NULL;
64 util::CriticalSection::SafeLock l(mutex);
65 if((ptr = HASH::findEntry(DisplayString(dpy), win)) != NULL)
66 {
67 if(!ptr->value)
68 {
69 ptr->value = new VirtualWin(dpy, win);
70 VirtualWin *vw = ptr->value;
71 vw->initFromWindow(config);
72 }
73 else
74 {
75 VirtualWin *vw = ptr->value;
76 vw->checkConfig(config);
77 }
78 return ptr->value;
79 }
80 return NULL;
81 }
82
83 void remove(Display *dpy, GLXDrawable glxd)
84 {

Callers 3

glXCreateWindowFunction · 0.80
glXMakeCurrentFunction · 0.80
glXMakeContextCurrentFunction · 0.80

Calls 2

initFromWindowMethod · 0.80
checkConfigMethod · 0.80

Tested by

no test coverage detected