Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nandantumu authored Oct 11, 2024
1 parent b24ad7e commit 5ba30b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f1tenth_gym/envs/rendering/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def make_renderer(
if render_spec.render_type == "pygame":
from .rendering_pygame import PygameEnvRenderer as EnvRenderer
elif render_spec.render_type == "pyqt6":
if "rgb_array" in render_mode:
if render_mode in ["rgb_array", "rgb_array_list"]:
os.environ["QT_QPA_PLATFORM"] = "offscreen"
from .rendering_pyqt import PyQtEnvRenderer as EnvRenderer
else:
Expand Down

0 comments on commit 5ba30b4

Please sign in to comment.