ApplicationOverlay::~ApplicationOverlay() { auto geometryCache = DependencyManager::get<GeometryCache>(); if (geometryCache) { geometryCache->releaseID(_domainStatusBorder); geometryCache->releaseID(_magnifierBorder); geometryCache->releaseID(_qmlGeometryId); } }
void ReBar::removeBand(int id) { int index = (int)SendMessage(_hSelf, RB_IDTOINDEX, (WPARAM)id, 0); if (id >= REBAR_BAR_EXTERNAL) releaseID(id); ::SendMessage(_hSelf, RB_DELETEBAND, (WPARAM)index, (LPARAM)0); }
Web3DOverlay::~Web3DOverlay() { if (_webSurface) { QQuickItem* rootItem = _webSurface->getRootItem(); if (rootItem && rootItem->objectName() == "tabletRoot") { auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>(); tabletScriptingInterface->setQmlTabletRoot("com.highfidelity.interface.tablet.system", nullptr); } // Fix for crash in QtWebEngineCore when rapidly switching domains // Call stop on the QWebEngineView before destroying OffscreenQMLSurface. if (rootItem) { QObject* obj = rootItem->findChild<QObject*>("webEngineView"); if (obj) { // stop loading QMetaObject::invokeMethod(obj, "stop"); } } _webSurface->pause(); auto overlays = &(qApp->getOverlays()); QObject::disconnect(overlays, &Overlays::mousePressOnOverlay, this, nullptr); QObject::disconnect(overlays, &Overlays::mouseReleaseOnOverlay, this, nullptr); QObject::disconnect(overlays, &Overlays::mouseMoveOnOverlay, this, nullptr); QObject::disconnect(overlays, &Overlays::hoverLeaveOverlay, this, nullptr); QObject::disconnect(this, &Web3DOverlay::scriptEventReceived, _webSurface.data(), &OffscreenQmlSurface::emitScriptEvent); QObject::disconnect(_webSurface.data(), &OffscreenQmlSurface::webEventReceived, this, &Web3DOverlay::webEventReceived); DependencyManager::get<OffscreenQmlSurfaceCache>()->release(QML, _webSurface); _webSurface.reset(); } auto geometryCache = DependencyManager::get<GeometryCache>(); if (geometryCache) { geometryCache->releaseID(_geometryId); } }
Text3DOverlay::~Text3DOverlay() { delete _textRenderer; auto geometryCache = DependencyManager::get<GeometryCache>(); if (geometryCache) { geometryCache->releaseID(_geometryId); } }
Antialiasing::~Antialiasing() { auto geometryCache = DependencyManager::get<GeometryCache>(); if (geometryCache) { geometryCache->releaseID(_geometryId); } }
ProgramState::~ProgramState() { releaseID(m_ID); }
Image3DOverlay::~Image3DOverlay() { auto geometryCache = DependencyManager::get<GeometryCache>(); if (geometryCache) { geometryCache->releaseID(_geometryId); } }