How do I install a 'real' OpenGL 3.1 driver on the Pi 4?ģ. The override is supposedly only for debugging will all the 3.1 features really be available? If not, how do I discover what is missing?Ģ. Prefixing the Pi 4 application with 'MESA_GL_VERSION_OVERRIDE=3.3' magically fixes this problem, as the code reports 'version 3.3 (Compatibility Profile) Mesa 19.3.2'.ġ.
Pi 4 returns '2.1 Mesa 19.3.2', which is a nuisance, as there are some 3.1 features I'd like to use: GLSL '#version 140' returns an error. No problem I can live with the limitations of 3.1, and the shader compilers do accept '#version 140' in the GLSL code. Pi 3 works fine glGetString(GL_VERSION) returns '3.1 Mesa 19.3.2 '. I've installed freeglut3-dev and libglew-dev from the latest distro. I have a relatively simple OpenGL application (oscilloscope display) that I'd like to run on the widest range of Pi hardware, with the smallest complication installing graphics drivers.