From eb1efe063c864954e2fa75edf8f7d8ad2f76d507 Mon Sep 17 00:00:00 2001 From: AnastaZIuk Date: Wed, 4 Sep 2024 14:37:47 +0200 Subject: [PATCH] update main.cpp, remove frames in flight from UI's constructor args --- 61_UI/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/61_UI/main.cpp b/61_UI/main.cpp index 072d66030..b457c0291 100644 --- a/61_UI/main.cpp +++ b/61_UI/main.cpp @@ -188,7 +188,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication auto descriptorSetLayout = m_device->createDescriptorSetLayout(bindings); - pass.ui.manager = core::make_smart_refctd_ptr(smart_refctd_ptr(m_device), smart_refctd_ptr(descriptorSetLayout), (int)m_maxFramesInFlight, renderpass, nullptr, smart_refctd_ptr(m_window)); + pass.ui.manager = core::make_smart_refctd_ptr(smart_refctd_ptr(m_device), smart_refctd_ptr(descriptorSetLayout), renderpass, nullptr, smart_refctd_ptr(m_window)); IDescriptorPool::SCreateInfo descriptorPoolInfo = {}; descriptorPoolInfo.maxDescriptorCount[static_cast(asset::IDescriptor::E_TYPE::ET_SAMPLER)] = 69u; @@ -553,7 +553,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication .renderArea = currentRenderArea }; cb->beginRenderPass(info, IGPUCommandBuffer::SUBPASS_CONTENTS::INLINE); - pass.ui.manager->render(cb, pass.ui.descriptorSet.get(), resourceIx); + pass.ui.manager->render(cb, pass.ui.descriptorSet.get()); cb->endRenderPass(); } cb->end();