t/sdl_test: Fix SDL service

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2358>
This commit is contained in:
Rylie Pavlik 2024-11-13 11:05:17 -06:00
parent 0ca2ddd914
commit e052834399

View file

@ -78,6 +78,7 @@ sdl_device_init(struct sdl_program *sp)
// Name and type.
xdev->name = XRT_DEVICE_GENERIC_HMD;
xdev->device_type = XRT_DEVICE_TYPE_HMD;
xdev->hmd->view_count = 2;
// Print name.
snprintf(xdev->str, XRT_DEVICE_NAME_LEN, "SDL HMD");