From e827d9c04f3646cc4eaf262985a2886b4a98164e Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 15 May 2020 12:38:22 +0400 Subject: [PATCH] Disable physics profiler, if Bullet was compiled without profiling support --- apps/openmw/mwgui/windowmanagerimp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwgui/windowmanagerimp.cpp b/apps/openmw/mwgui/windowmanagerimp.cpp index 21e84613c4..1d2dc185bc 100644 --- a/apps/openmw/mwgui/windowmanagerimp.cpp +++ b/apps/openmw/mwgui/windowmanagerimp.cpp @@ -15,6 +15,9 @@ #include #include +// For BT_NO_PROFILE +#include + #include #include @@ -2202,7 +2205,9 @@ namespace MWGui void WindowManager::toggleDebugWindow() { +#ifndef BT_NO_PROFILE mDebugWindow->setVisible(!mDebugWindow->isVisible()); +#endif } void WindowManager::cycleSpell(bool next)