From 4a1876b023a082d92ee780e5c0f501007c961a23 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Mon, 9 Oct 2017 20:07:16 +0200 Subject: [PATCH] Also check against TRANSFER_SRC format flag to enable swap chain image usage flag --- base/VulkanSwapChain.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/VulkanSwapChain.hpp b/base/VulkanSwapChain.hpp index f7e3fc15..40ce6338 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_SRC_BIT) { + if ((formatProps.optimalTilingFeatures & VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR) || (formatProps.optimalTilingFeatures & VK_FORMAT_FEATURE_BLIT_SRC_BIT)) { swapchainCI.imageUsage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT; }