From e6d08805d3540a5a8ae594af4c8b33476c2b4683 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Mon, 16 Dec 2024 23:15:56 +0000 Subject: [PATCH] Port fix for destroying windows for ogre2.2 Signed-off-by: Ian Chen --- ogre2/src/Ogre2RenderEngine.cc | 4 ++++ 1 file changed, 4 insertions(+) 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;