diff --git a/ogre_mesh_viewer.py b/ogre_mesh_viewer.py index 1df0548..8d75433 100755 --- a/ogre_mesh_viewer.py +++ b/ogre_mesh_viewer.py @@ -748,7 +748,9 @@ def setup(self): self.gui = MeshViewerGui(self) self.getRenderWindow().addListener(self.gui) - self.getRoot().renderOneFrame() + # imgui needs warmup to render on first frame + # see https://github.com/ocornut/imgui/issues/1893#issuecomment-399102821 + self.getRenderWindow().update(False) self.getRoot().renderOneFrame() Ogre.LogManager.getSingleton().logMessage(f"Opening file: {os.path.normpath(self.infile)}")