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

Method setDirect

server/VirtualDrawable.cpp:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279
280
281void VirtualDrawable::setDirect(Bool direct_)
282{
283 if(edpy != EGL_NO_DISPLAY)
284 THROW("VirtualDrawable::setDirect() method not supported with EGL/X11");
285
286 if(direct_ != True && direct_ != False) return;
287 CriticalSection::SafeLock l(mutex);
288 if(direct_ != direct && ctx)
289 {
290 backend::destroyContext(dpy, ctx); ctx = 0;
291 }
292 direct = direct_;
293}
294
295
296void VirtualDrawable::clear(void)

Callers 2

glXMakeCurrentFunction · 0.80
glXMakeContextCurrentFunction · 0.80

Calls 1

destroyContextFunction · 0.85

Tested by

no test coverage detected