# Anti-aliasing not working in Mathematica 10.3 and XUbuntu

Bug introduced in 10.0.2 on XUbuntu persisting through 10.3 or later

I'm running a fresh install of XUbuntu 14.04.3 LTS with an NVidia GeForce GTX 970. I have installed NVidia driver 352.63 and OpenGL is working. Additionally, libglu1-mesa is installed.

Nevertheless, anti-aliasing is not working and cannot be adjust in the preference settings.

The problem is that

libMesaGL.so.1 isn't missing, it's included with Mathematica and is on LD_LIBRARY_PATH at runtime. The problem is not that gltest is missing a dependency, but that it runs and returns GLTest_Fail for some reason. This is being looked into. – ilian

Here is a related question.

• This seems to be a very related issue of of this one. Since the last issue was resolved with the update of Mathematica but this still persists, I'm opening this as new question. – halirutan Dec 4 '15 at 3:28
• See also this issue – Gerli Dec 4 '15 at 11:50
• I'm running dual GTX970s on Windows 10. Antialiasing has no discernable effect. – Doug Kimzey Dec 31 '18 at 17:37

Cross-posted from the related issue, this is the workaround that I found:

I had to modify the /usr/local/bin/mathematica script to fix 3D antialiasing. It seems that the GLTest script fails and as a consequence Mathematica disables advanced 3D rendering. The fix is to replace the line

GLTestResult=${GLTest} 1 1 1 2${userDisplay}  2> /dev/null | grep "GLTest_OK"


with

GLTestResult="GLTest_OK"


and now antialiasing works. Seems like a bug or improper test procedure to me. Tested with Mathematica 10.3.0 on Xubuntu 15.10 with Nvidia GeForce GT 730 and libglu1-mesa 9.0.0-2. Note that I did not have to export MATHEMATICA_GL_FBO=1 to enable antialiasing.

• Works with Intel chip card. Fedora 23/Gnome. By any chance do you know if something like this can be used to fix antialiasing in other openGL programs, such as glxgears or Acrobat Reader for Linux (see tex.stackexchange.com/questions/300953/…) – alfC Apr 7 '16 at 5:00
• Would there be a similar fix for Windows users? – Doug Kimzey Dec 31 '18 at 17:47