Yeah, I'm an idiot, std::min is the correct one

This commit is contained in:
Phillip Stephens 2021-07-02 22:23:29 -07:00
parent 7a7af73c94
commit 0b523f98c3
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
2 changed files with 2 additions and 2 deletions

View File

@ -447,7 +447,7 @@ public:
using delta_duration = std::chrono::duration<float, std::ratio<1>>;
realDt = std::chrono::duration_cast<delta_duration>(now - m_prevFrameTime).count();
if (m_cvarCommons.m_variableDt->toBoolean()) {
dt = std::max(realDt, 1 / 30.f);
dt = std::min(realDt, 1 / 30.f);
}
}
m_prevFrameTime = now;

2
extern/imgui vendored

@ -1 +1 @@
Subproject commit 8877eab3933c7031e2b41f372b852618db219489
Subproject commit 23a15834fa23226bd26a17f5142b00678617fec4