diff --git a/client/application.h b/client/application.h index e01a1ee7..77c48495 100644 --- a/client/application.h +++ b/client/application.h @@ -408,11 +408,6 @@ public: return instance().generic_trackers; } - static const std::vector & get_xr_extensions() - { - return instance().xr_extensions; - } - static const std::vector & get_vk_device_extensions() { return instance().vk_device_extensions; diff --git a/client/xr/system.cpp b/client/xr/system.cpp index 02068e00..2b475b6f 100644 --- a/client/xr/system.cpp +++ b/client/xr/system.cpp @@ -19,7 +19,6 @@ #include "system.h" -#include "application.h" #include "body_tracker.h" #include "details/enumerate.h" #include "face_tracker.h" @@ -27,6 +26,7 @@ #include "utils/contains.h" #include "vk/check.h" #include "xr/check.h" +#include "xr/instance.h" #include #include @@ -208,11 +208,10 @@ xr::passthrough_type xr::system::passthrough_supported() const if (utils::contains(environment_blend_modes(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO), XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND)) return passthrough_type::color; - const std::vector & xr_extensions = application::get_xr_extensions(); - if (utils::contains(xr_extensions, XR_HTC_PASSTHROUGH_EXTENSION_NAME)) + if (inst->has_extension(XR_HTC_PASSTHROUGH_EXTENSION_NAME)) return passthrough_type::color; - if (utils::contains(xr_extensions, XR_FB_PASSTHROUGH_EXTENSION_NAME)) + if (inst->has_extension(XR_FB_PASSTHROUGH_EXTENSION_NAME)) { XrSystemPassthroughProperties2FB passthrough_prop2{ .type = XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB,