mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-16 01:24:36 +00:00
#Use CPU OpenGL
This is a little qmake/cmake project for windows (it won't be compiled in other platforms) that generates a binary UseCPUOpenGL.exe file with admin privileges.
This binary is useful when MeshLab cannot start due to some graphic drivers that do not implement recent versions of OpenGL. In these cases, a (slow) CPU implementation of newer OpenGL leds MeshLab at least to start.
This binary must be run inside the MeshLab folder, and:
- it renames the file
opengl32sw.dllif present inside the MeshLab folder, or - it generates a
opengl32.dllfile that will be used by MeshLab instead of the system one.
Running meshlab, if glewInit() fails, UseCPUOpenGL.exe will be executed and the new opengl32.dll file will be renamed/placed in the MeshLab folder, overriding the system one just for MeshLab.