qt: Fix compiling with Vulkan support unavailable

This commit is contained in:
Cacodemon345
2022-04-25 16:09:37 +06:00
parent 9c070dc192
commit 6f968e3fd7
6 changed files with 16 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
#include <QCoreApplication>
#include <QFile>
#include "qt_vulkanrenderer.hpp"
#if QT_CONFIG(vulkan)
#include <QVulkanFunctions>
extern "C"
@@ -1003,3 +1004,4 @@ void VulkanRenderer2::startNextFrame()
m_window->frameReady();
m_window->requestUpdate(); // render continuously, throttled by the presentation rate
}
#endif