@@ -248,7 +248,7 @@ class GeometryCreatorSampleApp : public ApplicationBase
248
248
249
249
CommonAPI::Init (
250
250
initOutput,
251
- video::EAT_OPENGL ,
251
+ video::EAT_VULKAN ,
252
252
" 35.GeometryCreator" ,
253
253
requiredInstanceFeatures,
254
254
optionalInstanceFeatures,
@@ -515,10 +515,7 @@ class GeometryCreatorSampleApp : public ApplicationBase
515
515
auto & fence = m_frameComplete[m_resourceIx];
516
516
517
517
if (fence)
518
- {
519
- while (logicalDevice->waitForFences (1u , &fence.get (), false , MAX_TIMEOUT) == video::IGPUFence::ES_TIMEOUT) {}
520
- logicalDevice->resetFences (1u , &fence.get ());
521
- }
518
+ logicalDevice->blockForFences (1u , &fence.get ());
522
519
else
523
520
fence = logicalDevice->createFence (static_cast <video::IGPUFence::E_CREATE_FLAGS>(0 ));
524
521
@@ -552,8 +549,6 @@ class GeometryCreatorSampleApp : public ApplicationBase
552
549
scissor.extent = { WIN_W,WIN_H };
553
550
commandBuffer->setScissor (0u , 1u , &scissor);
554
551
555
- swapchain->acquireNextImage (MAX_TIMEOUT, m_imageAcquire[m_resourceIx].get (), nullptr , &m_acquiredNextFBO);
556
-
557
552
video::IGPUCommandBuffer::SRenderpassBeginInfo beginInfo;
558
553
{
559
554
VkRect2D area;
@@ -594,7 +589,8 @@ class GeometryCreatorSampleApp : public ApplicationBase
594
589
595
590
commandBuffer->endRenderPass ();
596
591
commandBuffer->end ();
597
-
592
+
593
+ logicalDevice->resetFences (1 , &fence.get ());
598
594
CommonAPI::Submit (
599
595
logicalDevice.get (),
600
596
swapchain.get (),
0 commit comments