Commit 52fa14d3 authored by w4t's avatar w4t

little fix imgui requires delta > 0

parent 9f4e3b74
......@@ -171,6 +171,7 @@ namespace ofxImGui
if (currentTime > lastTime)
{
io.DeltaTime = currentTime - lastTime;
if(io.DeltaTime <= 0.0f) io.DeltaTime = 1.0f / 60.0f; //imgui requires delta > 0
}
else {
io.DeltaTime = 1.0f / 60.f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment