Skip to content

Commit

Permalink
BUG: Fix bug with Mesa 3D detection
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 24, 2025
1 parent 7daecee commit de58252
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changes/devel/bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug with automated Mesa 3D detection for proper 3D option setting on systems with software rendering, by `Eric Larson`_.
1 change: 1 addition & 0 deletions examples/preprocessing/movement_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
##############################################################################
# After checking the annotated movement artifacts, calculate the new transform
# and plot it:

new_dev_head_t = compute_average_dev_head_t(raw, head_pos)
raw.info["dev_head_t"] = new_dev_head_t
fig = mne.viz.plot_alignment(
Expand Down
2 changes: 1 addition & 1 deletion mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ def _is_osmesa(plotter):
"surface rendering, consider upgrading to 18.3.6 or "
"later."
)
is_osmesa = "via llvmpipe" in gpu_info
is_osmesa = "llvmpipe" in gpu_info
return is_osmesa


Expand Down

0 comments on commit de58252

Please sign in to comment.