From d10d19ef13c54006eef0a13f82a04d9317fe6474 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Wed, 18 Dec 2024 02:05:18 +0800 Subject: [PATCH] Port fix for destroying windows for ogre2.2 (#1092) 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;