Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

OpenXR: Only chain eye-tracked foveation properties when the extension is enabled

Claire Blackshaw0a2b18eea550
diff --git a/modules/openxr/extensions/openxr_fb_foveation_extension.cpp b/modules/openxr/extensions/openxr_fb_foveation_extension.cpp
index 9f14b884bf5..ea0a2d531d5 100644
--- a/modules/openxr/extensions/openxr_fb_foveation_extension.cpp
+++ b/modules/openxr/extensions/openxr_fb_foveation_extension.cpp
@@ -142,7 +142,7 @@ bool OpenXRFBFoveationExtension::is_enabled() const {
void *OpenXRFBFoveationExtension::set_system_properties_and_get_next_pointer(void *p_next_pointer) {
#ifdef XR_USE_GRAPHICS_API_VULKAN
- if (rendering_driver == "vulkan") {
+ if (rendering_driver == "vulkan" && meta_foveation_eye_tracked_ext) {
meta_foveation_eye_tracked_properties.next = p_next_pointer;
return &meta_foveation_eye_tracked_properties;
}