def _fix_offscreen_rendering():
    """A little workaround to fix issues in offscreen rendering.

    See: https://github.com/metadriverse/metadrive/issues/632
    """
    from metadrive.envs.base_env import BASE_DEFAULT_CONFIG
    from metadrive.engine.engine_utils import initialize_engine, close_engine
    config = BASE_DEFAULT_CONFIG.copy()
    config["debug"] = True
    initialize_engine(config)
    close_engine()
A little workaround to fix issues in offscreen rendering.

    See: https://github.com/metadriverse/metadrive/issues/632
    
metadrive/engine/engine_utils.py