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 df4187e commit b24ad7e
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 render_mode == "rgb_array":
if "rgb_array" in render_mode:
os.environ["QT_QPA_PLATFORM"] = "offscreen"
from .rendering_pyqt import PyQtEnvRenderer as EnvRenderer
else:
Expand Down

0 comments on commit b24ad7e

Please sign in to comment.