Browse Source

Platform: properly initialize GlfwApp minimal loop period.

This was left uninitialized in a9daddfb63,
causing random stalls unless setSwapInterval() or setMinimalLoopPeriod()
was called. Sorry!
pull/419/merge
Vladimír Vondruš 2 years ago
parent
commit
af251bf5d2
  1. 2
      src/Magnum/Platform/GlfwApplication.h

2
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

Loading…
Cancel
Save