Skip to content
Open
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
4 changes: 4 additions & 0 deletions mujoco_py/opengl_context.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down