The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/common: Fix creation on no driver available

Only say we can create a system if we have a driver in legacy builder.

authored by

Gabriele Boccone and committed by
Jakob Bornecrantz
ce90c0a1 b500272c

+6 -3
+6 -3
src/xrt/targets/common/target_builder_legacy.c
··· 99 99 struct xrt_prober *xp, 100 100 struct xrt_builder_estimate *estimate) 101 101 { 102 - estimate->maybe.head = true; 103 - estimate->maybe.left = true; 104 - estimate->maybe.right = true; 102 + // If no driver is enabled, there is no way to create a HMD 103 + bool may_create_hmd = xb->driver_identifier_count > 0; 104 + 105 + estimate->maybe.head = may_create_hmd; 106 + estimate->maybe.left = may_create_hmd; 107 + estimate->maybe.right = may_create_hmd; 105 108 estimate->priority = -20; 106 109 107 110 return XRT_SUCCESS;