If the program can spawn a separate process for the OpenGL check, e.g. with multiprocessing.Process
, then the original process should still be able to load the mesa DLL before importing vtkRenderingOpenGL. Don’t ask me for an example, though, because I’ve never attempted to do this.