From 77146f327c2d8fabc5e5cbbf3a7ed24e791e4368 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 27 Nov 2022 16:19:29 +0200 Subject: [PATCH] Fix some issues in VulkanContext when Vulkan support is not enabled --- source/graphics/vulkancontext.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/graphics/vulkancontext.cpp b/source/graphics/vulkancontext.cpp index 5b2831a..fcb6ca2 100644 --- a/source/graphics/vulkancontext.cpp +++ b/source/graphics/vulkancontext.cpp @@ -2,6 +2,8 @@ #include #include "window.h" +using namespace std; + namespace Msp { namespace Graphics { @@ -18,6 +20,11 @@ VulkanContext::VulkanContext(Window &w, const VulkanOptions &opts): } #ifndef WITH_VULKAN +string vulkan_error::get_error_message(unsigned) +{ + return string(); +} + void VulkanContext::platform_init(const VulkanOptions &) { throw runtime_error("no Vulkan support"); -- 2.45.2