diff --git a/metadrive/engine/core/engine_core.py b/metadrive/engine/core/engine_core.py index cdd529939..1dc04d785 100644 --- a/metadrive/engine/core/engine_core.py +++ b/metadrive/engine/core/engine_core.py @@ -252,12 +252,12 @@ def __init__(self, global_config): if self.mode == RENDER_MODE_ONSCREEN and (not self.global_config["debug"]): if self.global_config["show_logo"]: self._window_logo = attach_logo(self) - self._loading_logo = attach_cover_image( - window_width=self.get_size()[0], window_height=self.get_size()[1] - ) - for i in range(5): - self.graphicsEngine.renderFrame() - self.taskMgr.add(self.remove_logo, "remove _loading_logo in first frame") + self._loading_logo = attach_cover_image( + window_width=self.get_size()[0], window_height=self.get_size()[1] + ) + for i in range(5): + self.graphicsEngine.renderFrame() + self.taskMgr.add(self.remove_logo, "remove _loading_logo in first frame") self.closed = False