16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00
This commit is contained in:
milek7
2018-10-24 12:59:34 +02:00
parent 472255931d
commit 8abe898735
8 changed files with 150 additions and 120 deletions

View File

@@ -147,6 +147,9 @@ eu07_application::run() {
// main application loop
while (!glfwWindowShouldClose( m_windows.front() ) && !m_modestack.empty())
{
Timer::subsystem.mainloop_total.start();
glfwPollEvents();
if (!m_modes[ m_modestack.top() ]->update())
break;
if (!GfxRenderer.Render())
@@ -154,9 +157,6 @@ eu07_application::run() {
GfxRenderer.SwapBuffers();
Timer::subsystem.mainloop_total.start();
glfwPollEvents();
if (m_modestack.empty())
return 0;