This commit is contained in:
Vaxry 2024-04-08 17:52:52 +01:00
parent 4edb12f953
commit 310faaae3a

View file

@ -41,7 +41,7 @@ void CFrameSchedulingManager::registerMonitor(CMonitor* pMonitor) {
#endif #endif
DATA->fenceTimer = std::make_shared<CEventLoopTimer>(::onFenceTimer, pMonitor); DATA->fenceTimer = std::make_shared<CEventLoopTimer>(::onFenceTimer, pMonitor);
DATA->vblankTimer = std::make_shared<CEventLoopTimer>(::onPresentTimer, pMonitor); DATA->vblankTimer = std::make_shared<CEventLoopTimer>(::onPresentTimer, DATA);
g_pEventLoopManager->addTimer(DATA->fenceTimer); g_pEventLoopManager->addTimer(DATA->fenceTimer);
g_pEventLoopManager->addTimer(DATA->vblankTimer); g_pEventLoopManager->addTimer(DATA->vblankTimer);