From 1ed282d2ee60b571a5ac360e09b043e0efb02452 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 9 Oct 2017 13:35:32 +0000 Subject: [PATCH] base: Check for swapchain blit source feature instead of destination As I understand it the goal is to use the swapchain image as a transfer source (for taking screenshots), not as a transfer destination. --- base/VulkanSwapChain.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/VulkanSwapChain.hpp b/base/VulkanSwapChain.hpp index ec10cf3f..f7e3fc15 100644 --- a/base/VulkanSwapChain.hpp +++ b/base/VulkanSwapChain.hpp @@ -394,7 +394,7 @@ public: // Set additional usage flag for blitting from the swapchain images if supported VkFormatProperties formatProps; vkGetPhysicalDeviceFormatProperties(physicalDevice, colorFormat, &formatProps); - if (formatProps.optimalTilingFeatures & VK_FORMAT_FEATURE_BLIT_DST_BIT) { + if (formatProps.optimalTilingFeatures & VK_FORMAT_FEATURE_BLIT_SRC_BIT) { swapchainCI.imageUsage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT; }