vispy.util.osmesa_gl module#

vispy.util.osmesa_gl.fix_osmesa_gl_lib()#

When using OSMesa, the gl functions (from libGL) are included in libOSMesa.so. This function modifies the VISPY_GL_LIB env variable so gl2 picks up libOSMesa.so as the OpenGL library.

This modification must be done before vispy.gloo is imported for the first time.