Index: tools/vulkan/win/main_win.cpp |
diff --git a/tools/vulkan/win/main_win.cpp b/tools/vulkan/win/main_win.cpp |
index 883b96df9bf8a3dacbf434461a85f7aa1ddb915f..c2ad6dabbfd722dafb6fae56c758e7cc531965ba 100644 |
--- a/tools/vulkan/win/main_win.cpp |
+++ b/tools/vulkan/win/main_win.cpp |
@@ -72,11 +72,11 @@ static int main_common(HINSTANCE hInstance, int show, int argc, char**argv) { |
if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE)) { |
TranslateMessage(&msg); |
DispatchMessage(&msg); |
- } |
- |
- previousTime = currentTime; |
- currentTime = now_ms(); |
- app->onIdle(currentTime - previousTime); |
+ } else { |
+ previousTime = currentTime; |
+ currentTime = now_ms(); |
+ app->onIdle(currentTime - previousTime); |
+ } |
} |
delete app; |