Merge pull request #382 from laanwj/2017_10_blitsrc

base: Check for swapchain blit source feature instead of destination
This commit is contained in:
Sascha Willems 2017-10-09 19:53:06 +02:00 committed by GitHub
commit c1de34c171

View file

@ -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;
}