Do not destroy global openglDisplay instance
void OpenGl_GraphicDriver::End ()
{
- openglDisplay.Nullify();
+ // This is unsafe to realease global object here
+ // because noone guaranteed that only one instance of OpenGl_GraphicDriver is used!
+ // So we disable this destructor here until openglDisplay not moved to OpenGl_GraphicDriver class definition.
+ ///openglDisplay.Nullify();
}
//=======================================================================
}
/* prp between front and back planes */
- if (!openglDisplay.IsNull() || !openglDisplay->Walkthrough())
+ if (openglDisplay.IsNull() || !openglDisplay->Walkthrough())
{
if( mapping->prp[2] < mapping->fpd &&
mapping->prp[2] > mapping->bpd )