diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2021-01-27 07:25:54 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2021-01-27 12:36:06 +0100 |
commit | a70e425611d80cc1d62ddd724d9f234e213503fd (patch) | |
tree | b7485b2fa862eaeabb2093e5c7adf962f7bf88ee | |
parent | 8329ade04f39fd181d003b3192c9e91ce9a13c38 (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.cpp | 5 |
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 |