From b51acac638503c2b114403bbbf4e5ff63ef90dea Mon Sep 17 00:00:00 2001 From: rsjtdrjgfuzkfg Date: Sat, 7 Jan 2023 18:41:58 +0100 Subject: OpenXR: Fix initialization warning on Android This commit adds proper checking for XR_KHR_loader_init support and fixes the warning regarding missing extensions on Android to only appear if neither XR_KHR_loader_init nor XR_KHR_loader_init_android are supported by the runtime. --- modules/openxr/openxr_api.h | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/openxr/openxr_api.h') diff --git a/modules/openxr/openxr_api.h b/modules/openxr/openxr_api.h index a697a5f90a..5fb8de660e 100644 --- a/modules/openxr/openxr_api.h +++ b/modules/openxr/openxr_api.h @@ -305,6 +305,7 @@ public: static bool openxr_is_enabled(bool p_check_run_in_editor = true); _FORCE_INLINE_ static OpenXRAPI *get_singleton() { return singleton; } + XrResult try_get_instance_proc_addr(const char *p_name, PFN_xrVoidFunction *p_addr); XrResult get_instance_proc_addr(const char *p_name, PFN_xrVoidFunction *p_addr); String get_error_string(XrResult result); String get_swapchain_format_name(int64_t p_swapchain_format) const; -- cgit v1.2.3