summaryrefslogtreecommitdiffhomepage
path: root/main/draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/draw.cpp')
-rw-r--r--main/draw.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 92fa8b9d..ddeccc23 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -19,7 +19,10 @@ void app::drawEvent()
_frame_time = dt;
}
else
- swapBuffers(), timeline.nextFrame();
+ {
+ swapBuffers();
+ timeline.nextFrame();
+ }
{
const float dt = std::clamp(timeline.previousFrameDuration(), 1e-3f, 1e-1f);