diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-12 00:56:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 00:56:51 +0100 |
commit | 2fcd298f96b75b77df368e67129c9d13a53adfbd (patch) | |
tree | e9069497537008c8789740bc5b2c9ece1ca19cad /modules/openxr/openxr_api.cpp | |
parent | 201673ecd8d8d6baba67f1db5120a3565640f9bd (diff) | |
parent | b51acac638503c2b114403bbbf4e5ff63ef90dea (diff) |
Merge pull request #71034 from rsjtdrjgfuzkfg/openxr-android-warning
OpenXR: Fix android loader extension detection
Diffstat (limited to 'modules/openxr/openxr_api.cpp')
-rw-r--r-- | modules/openxr/openxr_api.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/openxr/openxr_api.cpp b/modules/openxr/openxr_api.cpp index 33b3c2967f..d556f475d2 100644 --- a/modules/openxr/openxr_api.cpp +++ b/modules/openxr/openxr_api.cpp @@ -1224,8 +1224,12 @@ bool OpenXRAPI::resolve_instance_openxr_symbols() { return true; } +XrResult OpenXRAPI::try_get_instance_proc_addr(const char *p_name, PFN_xrVoidFunction *p_addr) { + return xrGetInstanceProcAddr(instance, p_name, p_addr); +} + XrResult OpenXRAPI::get_instance_proc_addr(const char *p_name, PFN_xrVoidFunction *p_addr) { - XrResult result = xrGetInstanceProcAddr(instance, p_name, p_addr); + XrResult result = try_get_instance_proc_addr(p_name, p_addr); if (result != XR_SUCCESS) { String error_message = String("Symbol ") + p_name + " not found in OpenXR instance."; |