From af251bf5d26126c404d9aae3ccf3eb5e08254da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 12 Oct 2024 20:28:09 +0200 Subject: [PATCH] Platform: properly initialize GlfwApp minimal loop period. This was left uninitialized in a9daddfb6384a2e0e909f7ecf2c567dc4d3630e9, causing random stalls unless setSwapInterval() or setMinimalLoopPeriod() was called. Sorry! --- src/Magnum/Platform/GlfwApplication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/GlfwApplication.h b/src/Magnum/Platform/GlfwApplication.h index a16f8b217..d3a6089d7 100644 --- a/src/Magnum/Platform/GlfwApplication.h +++ b/src/Magnum/Platform/GlfwApplication.h @@ -805,7 +805,7 @@ class GlfwApplication { GLFWwindow* _window{nullptr}; /* Not using Nanoseconds as that would require including Time.h */ - UnsignedInt _minimalLoopPeriodNanoseconds; + UnsignedInt _minimalLoopPeriodNanoseconds{}; Flags _flags; #ifdef MAGNUM_TARGET_GL /* Has to be in an Optional because we delay-create it in a constructor