From 8f3645dfe9d261d74386739736da15ccc8861269 Mon Sep 17 00:00:00 2001 From: Sebastian Gaida <gaida@ca-digit.com> Date: Tue, 1 Jun 2021 18:02:25 +0200 Subject: [PATCH] [#34][Fix] fix MSVC compilation shut up msvc it was a feature not a bug.... --- include/vkcv/SwapChain.hpp | 2 +- src/vkcv/SwapChain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vkcv/SwapChain.hpp b/include/vkcv/SwapChain.hpp index 71889c07..852a907e 100644 --- a/include/vkcv/SwapChain.hpp +++ b/include/vkcv/SwapChain.hpp @@ -71,7 +71,7 @@ namespace vkcv { * @param width * @param height */ - vk::SwapchainKHR recreateSwapchain( const Context &context, const Window &window, int width, int height); + void recreateSwapchain( const Context &context, const Window &window, int width, int height); }; } diff --git a/src/vkcv/SwapChain.cpp b/src/vkcv/SwapChain.cpp index 513334ac..ce874c86 100644 --- a/src/vkcv/SwapChain.cpp +++ b/src/vkcv/SwapChain.cpp @@ -160,7 +160,7 @@ namespace vkcv { return SwapChain(surface, swapchain, surfaceFormat, imageCount, presentMode); } - vk::SwapchainKHR SwapChain::recreateSwapchain( const Context &context, const Window &window, int width, int height){ + void SwapChain::recreateSwapchain( const Context &context, const Window &window, int width, int height){ vk::SwapchainKHR oldSwapchain = m_swapchain; vk::Extent2D extent2D = chooseSwapExtent(context.getPhysicalDevice(), m_surface, window); -- GitLab