The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: Properly guard misc extensions with ifdefs

+7 -1
+1 -1
src/xrt/state_trackers/oxr/oxr_api_session.c
··· 257 257 * 258 258 */ 259 259 260 - #ifdef XR_KHR_visibility_mask 260 + #ifdef OXR_HAVE_KHR_visibility_mask 261 261 XRAPI_ATTR XrResult XRAPI_CALL 262 262 oxr_xrGetVisibilityMaskKHR(XrSession session, 263 263 XrViewConfigurationType viewConfigurationType,
+2
src/xrt/state_trackers/oxr/oxr_session.c
··· 928 928 * function added. 929 929 */ 930 930 931 + #ifdef OXR_HAVE_MND_headless 931 932 if (sys->inst->extensions.MND_headless) { 932 933 OXR_SESSION_ALLOCATE_AND_INIT(log, sys, *out_session); 933 934 (*out_session)->compositor = NULL; 934 935 (*out_session)->create_swapchain = NULL; 935 936 return XR_SUCCESS; 936 937 } 938 + #endif 937 939 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, 938 940 "(createInfo->next->type) doesn't contain a valid " 939 941 "graphics binding structs");
+2
src/xrt/state_trackers/oxr/oxr_system.c
··· 318 318 } 319 319 #endif 320 320 321 + #ifdef OXR_HAVE_MNDX_force_feedback_curl 321 322 XrSystemForceFeedbackCurlPropertiesMNDX *force_feedback_props = NULL; 322 323 if (sys->inst->extensions.MNDX_force_feedback_curl) { 323 324 force_feedback_props = ··· 328 329 if (force_feedback_props) { 329 330 force_feedback_props->supportsForceFeedbackCurl = oxr_system_get_force_feedback_support(log, sys->inst); 330 331 } 332 + #endif 331 333 332 334 return XR_SUCCESS; 333 335 }
+2
src/xrt/state_trackers/oxr/oxr_verify.c
··· 539 539 /* We didn't recognize any graphics binding structs in the chain - our 540 540 * last hope is headless. */ 541 541 542 + #ifdef OXR_HAVE_MND_headless 542 543 if (inst->extensions.MND_headless) { 543 544 return XR_SUCCESS; 544 545 } 546 + #endif // OXR_HAVE_MND_headless 545 547 546 548 return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID, 547 549 "(createInfo->next) Argument chain does not contain "