C++ify wivrn_comp_target

This commit is contained in:
Sapphire
2026-03-18 21:06:00 -05:00
parent caa191ff06
commit 515010aeab
3 changed files with 326 additions and 300 deletions
+2 -2
View File
@@ -1095,9 +1095,9 @@ void wivrn_session::run_worker(std::stop_token stop)
{
scoped_lock lock(xrt_system.sessions.mutex);
if (xrt_system.sessions.count == 0)
comp_target->requested_refresh_rate = 0;
comp_target->reset_requested_refresh_rate();
}
if (comp_target->requested_refresh_rate == 0)
if (comp_target->get_requested_refresh_rate() == 0)
refresh.adjust(*connection);
}
if (do_control)