diff --git a/mujoco_py/opengl_context.pyx b/mujoco_py/opengl_context.pyx index 1b5c8b84a760e8aa588eabb93c828d77e3e8d9dd..34e84dda908a2fc79c366751738aaf6ca556f0f1 100644 --- a/mujoco_py/opengl_context.pyx +++ b/mujoco_py/opengl_context.pyx @@ -111,7 +111,7 @@ class GlfwContext(OpenGLContext): # HAX: When running on a Mac with retina screen, the size # sometimes doubles width, height = glfw.get_framebuffer_size(self.window) - if target_width != width: + if target_width != width and "darwin" in sys.platform.lower(): glfw.set_window_size(self.window, target_width // 2, target_height // 2) @staticmethod