mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
t/sdl_test: Fix SDL service
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2358>
This commit is contained in:
parent
0ca2ddd914
commit
e052834399
|
@ -78,6 +78,7 @@ sdl_device_init(struct sdl_program *sp)
|
||||||
// Name and type.
|
// Name and type.
|
||||||
xdev->name = XRT_DEVICE_GENERIC_HMD;
|
xdev->name = XRT_DEVICE_GENERIC_HMD;
|
||||||
xdev->device_type = XRT_DEVICE_TYPE_HMD;
|
xdev->device_type = XRT_DEVICE_TYPE_HMD;
|
||||||
|
xdev->hmd->view_count = 2;
|
||||||
|
|
||||||
// Print name.
|
// Print name.
|
||||||
snprintf(xdev->str, XRT_DEVICE_NAME_LEN, "SDL HMD");
|
snprintf(xdev->str, XRT_DEVICE_NAME_LEN, "SDL HMD");
|
||||||
|
|
Loading…
Reference in a new issue