| 279 | |
| 280 | |
| 281 | void 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 | |
| 296 | void VirtualDrawable::clear(void) |
no test coverage detected