Skip to content

armgit / godot

Public Imported from GitHub
0

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

OpenXR: Don't give warning about Vulkan subsampled images on OpenGL

David Snopek54a41916d209
diff --git a/modules/openxr/openxr_api.cpp b/modules/openxr/openxr_api.cpp
index 954f9817f2d..831fa9fe7d5 100644
--- a/modules/openxr/openxr_api.cpp
+++ b/modules/openxr/openxr_api.cpp
@@ -2538,7 +2538,7 @@ bool OpenXRAPI::pre_draw_viewport(RID p_render_target) {
bool use_subsampled_images = subsampled_images_enabled && subsampled_images_allowed;
if (render_state.use_subsampled_images != use_subsampled_images) {
render_state.use_subsampled_images = use_subsampled_images;
- if (!subsampled_images_allowed) {
+ if (subsampled_images_enabled && !subsampled_images_allowed) {
WARN_PRINT("Foveation with subsampled images was enabled, but rendering features are in use that have forced it to be disabled.");
}
should_recreate_swapchain = true;