mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
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:
parent
f4c3e9ed2c
commit
795360a511
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue