@@ -248,7 +248,7 @@ class GeometryCreatorSampleApp : public ApplicationBase
248248
249249 CommonAPI::Init (
250250 initOutput,
251- video::EAT_OPENGL ,
251+ video::EAT_VULKAN ,
252252 " 35.GeometryCreator" ,
253253 requiredInstanceFeatures,
254254 optionalInstanceFeatures,
@@ -515,10 +515,7 @@ class GeometryCreatorSampleApp : public ApplicationBase
515515 auto & fence = m_frameComplete[m_resourceIx];
516516
517517 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 ());
522519 else
523520 fence = logicalDevice->createFence (static_cast <video::IGPUFence::E_CREATE_FLAGS>(0 ));
524521
@@ -552,8 +549,6 @@ class GeometryCreatorSampleApp : public ApplicationBase
552549 scissor.extent = { WIN_W,WIN_H };
553550 commandBuffer->setScissor (0u , 1u , &scissor);
554551
555- swapchain->acquireNextImage (MAX_TIMEOUT, m_imageAcquire[m_resourceIx].get (), nullptr , &m_acquiredNextFBO);
556-
557552 video::IGPUCommandBuffer::SRenderpassBeginInfo beginInfo;
558553 {
559554 VkRect2D area;
@@ -594,7 +589,8 @@ class GeometryCreatorSampleApp : public ApplicationBase
594589
595590 commandBuffer->endRenderPass ();
596591 commandBuffer->end ();
597-
592+
593+ logicalDevice->resetFences (1 , &fence.get ());
598594 CommonAPI::Submit (
599595 logicalDevice.get (),
600596 swapchain.get (),
0 commit comments