From 117b5ec4ee358d9279216bd08407354fbb0f375b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 1 Apr 2021 19:16:13 -0700 Subject: [PATCH] 05-instancing: Fixed update logic. --- examples/05-instancing/instancing.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/05-instancing/instancing.cpp b/examples/05-instancing/instancing.cpp index f485517e8..dbb05188d 100644 --- a/examples/05-instancing/instancing.cpp +++ b/examples/05-instancing/instancing.cpp @@ -303,13 +303,15 @@ public: } } } + + // Advance to next frame. Rendering thread will be kicked to + // process submitted rendering primitives. + bgfx::frame(); + + return true; } - // Advance to next frame. Rendering thread will be kicked to - // process submitted rendering primitives. - bgfx::frame(); - - return true; + return false; } entry::MouseState m_mouseState;