mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
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.
This commit is contained in:
parent
9c02bf1b11
commit
b51acac638
4 changed files with 19 additions and 6 deletions
|
@ -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.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue