diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2021-01-27 07:25:54 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-27 13:04:32 +0000 |
commit | d1631d11faf15e70885717a51be1f94f9f51bd33 (patch) | |
tree | ab32575756be0438b414232851ac9c07bce259c5 | |
parent | ee73f6a733fa5975f77e9c538bd48fd3eaf0a22d (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
Reviewed-by: Mike Krus <mike.krus@kdab.com>
(cherry picked from commit a70e425611d80cc1d62ddd724d9f234e213503fd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 |