From: Mikko Rasa Date: Sun, 27 Nov 2022 14:19:29 +0000 (+0200) Subject: Fix some issues in VulkanContext when Vulkan support is not enabled X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=77146f327c2d8fabc5e5cbbf3a7ed24e791e4368;p=libs%2Fgui.git Fix some issues in VulkanContext when Vulkan support is not enabled --- 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");