MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / ~VirtualDrawable

Method ~VirtualDrawable

server/VirtualDrawable.cpp:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243
244VirtualDrawable::~VirtualDrawable(void)
245{
246 mutex.lock(false);
247 delete oglDraw; oglDraw = NULL;
248 if(ctx)
249 {
250 if(edpy != EGL_NO_DISPLAY)
251 _eglDestroyContext(edpy, (EGLContext)ctx);
252 else
253 backend::destroyContext(dpy, ctx);
254 ctx = 0;
255 }
256 mutex.unlock(false);
257}
258
259
260int VirtualDrawable::init(int width, int height, VGLFBConfig config_)

Callers

nothing calls this directly

Calls 3

destroyContextFunction · 0.85
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected