summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2021-01-27 07:25:54 +0100
committerPaul Lemire <paul.lemire@kdab.com>2021-01-27 12:36:06 +0100
commita70e425611d80cc1d62ddd724d9f234e213503fd (patch)
treeb7485b2fa862eaeabb2093e5c7adf962f7bf88ee
parent8329ade04f39fd181d003b3192c9e91ce9a13c38 (diff)
Only declare staticVulkanInstance if QT_CONFIG(vulkan)
Should hopefully fix compile issues on platform when vulkan isn't found. Change-Id: Ia54486dc160960e0e7000c7de832f154ecee8b0c Task-number: QTBUG-90243 Pick-to: 6.0 Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r--src/render/surfaces/vulkaninstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/surfaces/vulkaninstance.cpp b/src/render/surfaces/vulkaninstance.cpp
index e588562f3..a8de2fce8 100644
--- a/src/render/surfaces/vulkaninstance.cpp
+++ b/src/render/surfaces/vulkaninstance.cpp
@@ -38,6 +38,9 @@
****************************************************************************/
#include "vulkaninstance_p.h"
+
+#if QT_CONFIG(vulkan)
+
#include <QVulkanInstance>
QT_BEGIN_NAMESPACE
@@ -68,3 +71,5 @@ QVulkanInstance &staticVulkanInstance() noexcept
} // Qt3DRender
QT_END_NAMESPACE
+
+#endif