This fixes compatibility issues with AMD graphics cards that support a OpenGL
3.1 compatibility profile. Integrated Intel GPUs using the Mesa drivers should set the environment variable:
MESA_GL_VERSION_OVERRIDE="3.1COMPAT"
This might not be a definitive solution to fix z-fighting issues, but it's a
good solution meanwhile and can be implemented easily on any shader just by
adding a few lines.