Browse Source

Platform: make BasicScreen destructor virtual.

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
67a5602967
  1. 5
      src/Magnum/Platform/Screen.h

5
src/Magnum/Platform/Screen.h

@ -214,7 +214,10 @@ template<class Application> class BasicScreen:
#endif #endif
explicit BasicScreen(); explicit BasicScreen();
~BasicScreen();
/* A common use case is a list of screen derivatives, so allow deleting
them through a base pointer */
virtual ~BasicScreen();
/** @brief Events propagated to this screen */ /** @brief Events propagated to this screen */
PropagatedEvents propagatedEvents() const { return _propagatedEvents; } PropagatedEvents propagatedEvents() const { return _propagatedEvents; }

Loading…
Cancel
Save