From 3eee118d3fa281cc03181a6dcd921d570b6cdfb7 Mon Sep 17 00:00:00 2001 From: Matthias Plappert Date: Tue, 11 Feb 2020 18:58:02 -0800 Subject: [PATCH] Disable anti-aliasing for Mac offscreen rendering --- mujoco_py/opengl_context.pyx | 4 ++++ 1 file changed, 4 insertions(+) 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: