Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mujoco_py/mjlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
elif sys.platform.startswith("linux"):
libfile = os.path.join(path_prefix, "bin/libmujoco131.so")
elif sys.platform.startswith("win"):
libfile = os.path.join(path_prefix, "bin/mujoco131.lib")
libfile = os.path.join(path_prefix, "bin/mujoco131.dll")
else:
raise RuntimeError("Unrecognized platform %s" % sys.platform)

Expand Down
4 changes: 2 additions & 2 deletions mujoco_py/mjviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ def finish(self):
glfw.make_context_current(self.window)
glfw.destroy_window(self.window)

if gl.glIsFramebuffer(self._fbo):
if gl.glIsFramebuffer and gl.glIsFramebuffer(self._fbo):
gl.glDeleteFramebuffers(int(self._fbo))
if gl.glIsRenderbuffer(self._rbo):
if gl.glIsRenderbuffer and gl.glIsRenderbuffer(self._rbo):
gl.glDeleteRenderbuffers(1, int(self._rbo))

mjlib.mjr_freeContext(byref(self.con))
Expand Down
2 changes: 1 addition & 1 deletion mujoco_py/platname_targdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
platname = "osx"
elif sys.platform.startswith("linux"):
platname = "linux"
elif sys.platform.startswith("windows"):
elif sys.platform.startswith("win"):
platname = "win"
targdir = "mujoco_%s"%platname