Compare against feature flags

This commit is contained in:
Mehmet Oguz Derin 2021-04-06 19:30:44 +03:00 committed by Charles Giessen
parent 617123254a
commit 903fdfe87b

View File

@ -1727,7 +1727,7 @@ detail::Result<Swapchain> SwapchainBuilder::build() const {
image_count = surface_support.capabilities.maxImageCount; image_count = surface_support.capabilities.maxImageCount;
} }
VkSurfaceFormatKHR surface_format = detail::find_surface_format( VkSurfaceFormatKHR surface_format = detail::find_surface_format(
info.physical_device, surface_support.formats, desired_formats, info.image_usage_flags); info.physical_device, surface_support.formats, desired_formats, info.format_feature_flags);
VkExtent2D extent = VkExtent2D extent =
detail::find_extent(surface_support.capabilities, info.desired_width, info.desired_height); detail::find_extent(surface_support.capabilities, info.desired_width, info.desired_height);