diff --git a/mujoco_py/opengl_context.pyx b/mujoco_py/opengl_context.pyx index 46a0895e..b5357cdf 100644 --- a/mujoco_py/opengl_context.pyx +++ b/mujoco_py/opengl_context.pyx @@ -79,6 +79,10 @@ class GlfwContext(OpenGLContext): print("Creating offscreen glfw") glfw.window_hint(glfw.VISIBLE, 0) glfw.window_hint(glfw.DOUBLEBUFFER, 0) + # For offscreen rendering, disable anti-aliasing. We do this because we often + # use Linux for offscreen rendering, which causes a difference in behavior + # when using Mac OS (which uses GLFW for off-screen rendering). + glfw.window_hint(glfw.SAMPLES, 0) init_width, init_height = self._INIT_WIDTH, self._INIT_HEIGHT else: if not quiet: