From 95ef3bafcd6d65b1e1e05aaa7e8aaaac2b7a3883 Mon Sep 17 00:00:00 2001 From: Saenoe <87696194+Saenoe@users.noreply.github.com> Date: Wed, 18 May 2022 00:33:22 +0200 Subject: [PATCH] fix OpenXRAPI::is_extension_supported returning opposite result --- modules/openxr/openxr_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openxr/openxr_api.cpp b/modules/openxr/openxr_api.cpp index 6e94e3b4446..f42af0492f2 100644 --- a/modules/openxr/openxr_api.cpp +++ b/modules/openxr/openxr_api.cpp @@ -172,7 +172,7 @@ bool OpenXRAPI::load_supported_extensions() { bool OpenXRAPI::is_extension_supported(const String &p_extension) const { for (uint32_t i = 0; i < num_supported_extensions; i++) { - if ((supported_extensions[i].extensionName == p_extension) == 0) { + if (supported_extensions[i].extensionName == p_extension) { #ifdef DEBUG print_line("OpenXR: requested extension", p_extension, "is supported"); #endif