]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix some issues in VulkanContext when Vulkan support is not enabled
authorMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:19:29 +0000 (16:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:27:05 +0000 (16:27 +0200)
source/graphics/vulkancontext.cpp

index 5b2831aae3631080ae89716ab454e9368a6b3a51..fcb6ca22d7332ef6f7cb251c2c3d7968a1072ab0 100644 (file)
@@ -2,6 +2,8 @@
 #include <msp/strings/format.h>
 #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");