You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #74848 from BastiaanOlij/add_xr_system_info
Add a get_system_info method to XRInterface
This commit is contained in:
@@ -385,8 +385,13 @@ bool OpenXRAPI::create_instance() {
|
||||
if (XR_FAILED(result)) {
|
||||
// not fatal probably
|
||||
print_line("OpenXR: Failed to get XR instance properties [", get_error_string(result), "]");
|
||||
|
||||
runtime_name = "";
|
||||
runtime_version = "";
|
||||
} else {
|
||||
print_line("OpenXR: Running on OpenXR runtime: ", instanceProps.runtimeName, " ", OpenXRUtil::make_xr_version_string(instanceProps.runtimeVersion));
|
||||
runtime_name = instanceProps.runtimeName;
|
||||
runtime_version = OpenXRUtil::make_xr_version_string(instanceProps.runtimeVersion);
|
||||
print_line("OpenXR: Running on OpenXR runtime: ", runtime_name, " ", runtime_version);
|
||||
}
|
||||
|
||||
for (OpenXRExtensionWrapper *wrapper : registered_extension_wrappers) {
|
||||
|
||||
Reference in New Issue
Block a user