File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication
365365 if (!device_base_t::onAppInitialized (smart_refctd_ptr (system)))
366366 return false ;
367367
368- m_semaphore = m_device->createSemaphore (m_submitIx );
368+ m_semaphore = m_device->createSemaphore (m_realFrameIx );
369369 if (!m_semaphore)
370370 return logFail (" Failed to Create a Semaphore!" );
371371
@@ -594,7 +594,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication
594594 {
595595 {
596596 .semaphore = m_semaphore.get (),
597- .value = ++m_submitIx ,
597+ .value = ++m_realFrameIx ,
598598 .stageMask = PIPELINE_STAGE_FLAGS::COLOR_ATTACHMENT_OUTPUT_BIT
599599 }
600600 };
@@ -623,7 +623,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication
623623 };
624624
625625 if (queue->submit (infos) != IQueue::RESULT::SUCCESS)
626- m_submitIx --;
626+ m_realFrameIx --;
627627 }
628628 }
629629
@@ -682,7 +682,6 @@ class UISampleApp final : public examples::SimpleWindowedApplication
682682 smart_refctd_ptr<ISemaphore> m_semaphore;
683683 smart_refctd_ptr<IGPUCommandPool> m_cmdPool;
684684 uint64_t m_realFrameIx : 59 = 0 ;
685- uint64_t m_submitIx : 59 = 0 ;
686685 uint64_t m_maxFramesInFlight : 5 ;
687686 std::array<smart_refctd_ptr<IGPUCommandBuffer>, ISwapchain::MaxImages> m_cmdBufs;
688687 ISimpleManagedSurface::SAcquireResult m_currentImageAcquire = {};
You can’t perform that action at this time.
0 commit comments