diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index f3b33d5a6..2b0e9baa1 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -436,6 +436,8 @@ void GlfwApplication::setSwapInterval(const Int interval) { } int GlfwApplication::exec() { + CORRADE_ASSERT(_window, "Platform::GlfwApplication::exec(): no window opened", {}); + while(!glfwWindowShouldClose(_window)) { if(_flags & Flag::Redraw) { _flags &= ~Flag::Redraw;