Adjust samples to recent swap chain class changes

This commit is contained in:
Sascha Willems 2024-12-19 21:40:42 +01:00
parent dcec337fa9
commit e9270580b8
4 changed files with 6 additions and 6 deletions

View file

@ -330,7 +330,7 @@ public:
frameBufferCreateInfo.layers = 1;
// Create frame buffers for every swap chain image
frameBuffers.resize(swapChain.imageCount);
frameBuffers.resize(swapChain.images.size());
for (uint32_t i = 0; i < frameBuffers.size(); i++)
{
attachments[1] = swapChain.imageViews[i];