d/steamvr_lh: Set view_count = 2

Drivers that do not use u_device_allocate must set view_count themselves.
This commit is contained in:
Christoph Haag 2024-03-17 22:35:08 +01:00
parent f4c3e9ed2c
commit 795360a511

View file

@ -149,6 +149,7 @@ Context::setup_hmd(const char *serial, vr::ITrackedDeviceServerDriver *driver)
#undef VERIFY
auto hmd_parts = std::make_unique<HmdDevice::Parts>();
hmd_parts->base.view_count = 2;
for (size_t idx = 0; idx < 2; ++idx) {
vr::EVREye eye = (idx == 0) ? vr::Eye_Left : vr::Eye_Right;
xrt_view &view = hmd_parts->base.views[idx];