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

@@ -35,6 +35,7 @@
#include <QVulkanWindow>
#include <QImage>
#if QT_CONFIG(vulkan)
#include "qt_vulkanwindowrenderer.hpp"
class VulkanRenderer2 : public QVulkanWindowRenderer
@@ -91,3 +92,4 @@ private:
QMatrix4x4 m_proj;
float m_rotation = 0.0f;
};
#endif