Skip to content

Commit

Permalink
FIX: bad_system
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 8, 2023
1 parent dee2d4b commit a9acdbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ def _toggle_antialias(self):
if self.figure._is_active():
# Azure
bad_system = os.getenv("AZURE_CI_WINDOWS", "false").lower() == "true"
# MESA can't seem to handle MSAA and depth peeling simultaneously, see
# https://github.com/pyvista/pyvista/issues/4867
bad_system |= _is_mesa(self.plotter)
for plotter in self._all_plotters:
if bad_system or not self.antialias:
plotter.disable_anti_aliasing()
Expand Down

0 comments on commit a9acdbb

Please sign in to comment.