Skip to content

Commit 420f24a

Browse files
committed
SwapChain: use the correct imageCount
1 parent f37138d commit 420f24a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/engine/renderer-vulkan/GraphicsCore/SwapChain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void SwapChain::Init( const VkInstance instance ) {
221221

222222
vkGetSwapchainImagesKHR( device, swapChain, &imageCount, nullptr );
223223

224-
images.Resize( mainSwapChain.imageCount );
224+
images.Resize( imageCount );
225225

226226
vkGetSwapchainImagesKHR( device, swapChain, &imageCount, images.memory );
227227
}

0 commit comments

Comments
 (0)