| 242 | |
| 243 | |
| 244 | VirtualDrawable::~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 | |
| 260 | int VirtualDrawable::init(int width, int height, VGLFBConfig config_) |
nothing calls this directly
no test coverage detected