From b48e6e783b1bb646c5d0b2f9cbd3748ce608ff0b Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 11 Feb 2022 11:26:09 +0100 Subject: Convert Vulkan instance setup from Qt Quick into a Gui helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it possible to reuse what's in QSGRhiSupport from other modules as well. Both Gui (texture-based widget/backingstore composition) and Multimedia are potential users of this in the future. Change-Id: I1b50cc5efd6811e9bc95f6287b9576931d4bcc44 Reviewed-by: Christian Strømme --- src/gui/kernel/qguiapplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/kernel/qguiapplication.cpp') diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 6b9c122074..7996883d06 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -123,6 +123,10 @@ #include #endif +#if QT_CONFIG(vulkan) +#include +#endif + #include #include @@ -1713,6 +1717,10 @@ QGuiApplicationPrivate::~QGuiApplicationPrivate() } #endif +#if QT_CONFIG(vulkan) + QVulkanDefaultInstance::cleanup(); +#endif + platform_integration->destroy(); delete platform_theme; -- cgit v1.2.3