Ignore errors when setting refresh rate

This commit is contained in:
Patrick Nicolas
2025-01-20 18:21:57 +01:00
parent 1a4d9fffb4
commit fd6a84ea0e
+4 -1
View File
@@ -304,7 +304,10 @@ void xr::session::set_refresh_rate(float refresh_rate)
static auto xrRequestDisplayRefreshRateFB = inst->get_proc<PFN_xrRequestDisplayRefreshRateFB>("xrRequestDisplayRefreshRateFB");
if (xrRequestDisplayRefreshRateFB)
CHECK_XR(xrRequestDisplayRefreshRateFB(id, refresh_rate));
{
if (auto res = xrRequestDisplayRefreshRateFB(id, refresh_rate); res != XR_SUCCESS)
spdlog::warn("Refresh rate change failed: {}", xr::to_string(res));
}
}
void xr::session::sync_actions(std::span<XrActionSet> action_sets)