Fix global anisotropic filtering mode on OpenGL. Closes #509.