The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: Fix crash when there is no optional extension in the list

authored by

Jakob Bornecrantz and committed by
Ryan Pavlik
82e2ce63 2e42373d

+2 -1
+2 -1
src/xrt/state_trackers/oxr/oxr_vulkan.c
··· 332 332 #endif 333 333 334 334 for (uint32_t i = 0; i < ARRAY_SIZE(optional_device_extensions); i++) { 335 - if (optional_device_extensions[i] && 335 + // Empty list or a not supported extension. 336 + if (optional_device_extensions[i] == NULL || 336 337 !vk_check_extension(props, prop_count, optional_device_extensions[i])) { 337 338 continue; 338 339 }