Skip to content

Commit

Permalink
minimum 3 swap chain images
Browse files Browse the repository at this point in the history
  • Loading branch information
jaelpark committed Nov 16, 2019
1 parent dd5a240 commit a88e587
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,7 @@ void CompositorInterface::InitializeRenderEngine(){
VkSwapchainCreateInfoKHR swapchainCreateInfo = {};
swapchainCreateInfo.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR;
swapchainCreateInfo.surface = surface;
//swapchainCreateInfo.minImageCount = 3;
swapchainCreateInfo.minImageCount = surfaceCapabilities.minImageCount;
swapchainCreateInfo.minImageCount = std::max(surfaceCapabilities.minImageCount,3u);
swapchainCreateInfo.imageFormat = VK_FORMAT_B8G8R8A8_UNORM;
swapchainCreateInfo.imageColorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
swapchainCreateInfo.imageExtent = imageExtent;
Expand Down

0 comments on commit a88e587

Please sign in to comment.