diff --git a/ogre2/src/Ogre2RenderEngine.cc b/ogre2/src/Ogre2RenderEngine.cc index 9c28ea594..5c4569e6c 100644 --- a/ogre2/src/Ogre2RenderEngine.cc +++ b/ogre2/src/Ogre2RenderEngine.cc @@ -153,6 +153,10 @@ void Ogre2RenderEngine::Destroy() { } this->ogreRoot = nullptr; + +#ifdef _WIN32 + UnregisterClassA("OgreGLWindow", nullptr); +#endif } delete this->ogreLogManager;