This commit is contained in:
Vaxry 2024-04-08 17:25:17 +01:00
parent cf2aa782e7
commit 8f2d1a5e69

View file

@ -50,6 +50,7 @@ void CFrameSchedulingManager::registerMonitor(CMonitor* pMonitor) {
void CFrameSchedulingManager::unregisterMonitor(CMonitor* pMonitor) { void CFrameSchedulingManager::unregisterMonitor(CMonitor* pMonitor) {
SSchedulingData* DATA = &m_vSchedulingData.emplace_back(SSchedulingData{pMonitor}); SSchedulingData* DATA = &m_vSchedulingData.emplace_back(SSchedulingData{pMonitor});
g_pEventLoopManager->removeTimer(DATA->fenceTimer); g_pEventLoopManager->removeTimer(DATA->fenceTimer);
g_pEventLoopManager->removeTimer(DATA->vblankTimer);
std::erase_if(m_vSchedulingData, [pMonitor](const auto& d) { return d.pMonitor == pMonitor; }); std::erase_if(m_vSchedulingData, [pMonitor](const auto& d) { return d.pMonitor == pMonitor; });
} }