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
365
365
if (!device_base_t::onAppInitialized (smart_refctd_ptr (system)))
366
366
return false ;
367
367
368
- m_semaphore = m_device->createSemaphore (m_submitIx );
368
+ m_semaphore = m_device->createSemaphore (m_realFrameIx );
369
369
if (!m_semaphore)
370
370
return logFail (" Failed to Create a Semaphore!" );
371
371
@@ -594,7 +594,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication
594
594
{
595
595
{
596
596
.semaphore = m_semaphore.get (),
597
- .value = ++m_submitIx ,
597
+ .value = ++m_realFrameIx ,
598
598
.stageMask = PIPELINE_STAGE_FLAGS::COLOR_ATTACHMENT_OUTPUT_BIT
599
599
}
600
600
};
@@ -623,7 +623,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication
623
623
};
624
624
625
625
if (queue->submit (infos) != IQueue::RESULT::SUCCESS)
626
- m_submitIx --;
626
+ m_realFrameIx --;
627
627
}
628
628
}
629
629
@@ -682,7 +682,6 @@ class UISampleApp final : public examples::SimpleWindowedApplication
682
682
smart_refctd_ptr<ISemaphore> m_semaphore;
683
683
smart_refctd_ptr<IGPUCommandPool> m_cmdPool;
684
684
uint64_t m_realFrameIx : 59 = 0 ;
685
- uint64_t m_submitIx : 59 = 0 ;
686
685
uint64_t m_maxFramesInFlight : 5 ;
687
686
std::array<smart_refctd_ptr<IGPUCommandBuffer>, ISwapchain::MaxImages> m_cmdBufs;
688
687
ISimpleManagedSurface::SAcquireResult m_currentImageAcquire = {};
You can’t perform that action at this time.
0 commit comments