When running Mathematica remotely from a Linux machine, it might happen that error messages of the form

libGL error: failed to load driver: swrast

show up. Jeremy Huddleston Sequoia from Apple writes about this:

IGLX was disabled by default in xorg-server in xorg-server-1.17. XQuartz 2.7.9 and later thus do not have IGLX enabled by default. With XQuartz-2.7.10 and later, you can enable support for it with a preference:

defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

This is a user-specific setting, the same issue has been observed with xfplo.