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

Function init

server/faker.cpp:161–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159// Called from XOpenDisplay(), unless a GLX function is called first
160
161void init(void)
162{
163 static int init = 0;
164
165 if(init) return;
166 GlobalCriticalSection::SafeLock l(globalMutex);
167 if(init) return;
168 init = 1;
169
170 fconfig_reloadenv();
171 if(strlen(fconfig.log) > 0) vglout.logTo(fconfig.log);
172
173 if(fconfig.verbose)
174 vglout.println("[VGL] %s v%s %d-bit (Build %s)", __APPNAME, __VERSION,
175 (int)sizeof(size_t) * 8, __BUILD);
176
177 if(getenv("VGL_DEBUG"))
178 {
179 vglout.print("[VGL] Attach debugger to process %d ...\n", getpid());
180 fgetc(stdin);
181 }
182 if(fconfig.trapx11) XSetErrorHandler(xhandler);
183}
184
185
186Display *init3D(void)

Callers 15

initMethod · 0.70
initFromWindowMethod · 0.70
updateGLXDrawableMethod · 0.70
init3DFunction · 0.70
XOpenDisplayFunction · 0.70
XkbOpenDisplayFunction · 0.70
EGLErrorMethod · 0.70
GLFrameMethod · 0.50
initMethod · 0.50
GLFrame.cppFile · 0.50

Calls 5

fconfig_reloadenvFunction · 0.85
getenvFunction · 0.85
logToMethod · 0.80
printlnMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected