(visuOgreQt): fix crash in ogreResize()
Summary
Since MR Sight/sight!211, sometimes in visuOgreQt::Window
the method ogreResize()
is called before the method initialise()
and therefore the render Window Ogre has not yet been initialized (nullptr).
Steps to reproduce
Launch OgreViewer on a crappy old PC (in debug mode to be slower) and if you are unlucky you will have a crash in Window::ogreResize()
(nullptr)
What is the current bug behavior?
It crashes.
What is the expected correct behavior?
It must not crash.
Possible fixes
Add a test to check if the ogre render windows is initialized before using it in the ogreResize()
method