Browse Source

Platform: remove copypasted comment.

pull/449/head
Vladimír Vondruš 6 years ago
parent
commit
d96442389a
  1. 5
      src/Magnum/Platform/GlfwApplication.cpp

5
src/Magnum/Platform/GlfwApplication.cpp

@ -727,10 +727,7 @@ bool GlfwApplication::mainLoopIteration() {
the call goes into the base class no-op viewportEvent()), but when the call goes into the base class no-op viewportEvent()), but when
calling create() / tryCreate() from user constructor, this might calling create() / tryCreate() from user constructor, this might
lead to crashes as things touched by viewportEvent() might not be lead to crashes as things touched by viewportEvent() might not be
initialized yet. To fix this, we ignore the first ever viewport initialized yet.
event. This behavior was not observed on Linux or macOS (and thus
ignoring the first viewport event there may be harmful), so keeping
this Windows-only.
2. On macOS, GLFW might sometimes (hard to reproduce) trigger a draw 2. On macOS, GLFW might sometimes (hard to reproduce) trigger a draw
event when creating the window. That's even worse than on Windows event when creating the window. That's even worse than on Windows
because this leads to pure virtual drawEvent() getting called and because this leads to pure virtual drawEvent() getting called and

Loading…
Cancel
Save