I am trying to override the detected opengl implementation version (a fix for Dying Light on Steam). From my understanding of opengl, i should be able to set what version it is reported as via the MESA_GL_VERSION_OVERRIDE variable.
$ glxinfo | grep 'version string'
OpenGL version string: 3.3 (Compatibility Profile) Mesa 19.0.8
$ MESA_GL_VERSION_OVERRIDE=3.3 glxinfo | egrep 'OpenGL version string'
OpenGL version string: 3.3 (Compatibility Profile) Mesa 19.0.8
How can I get gl to report as "3.3" and not the rest of it? I have tried exporting the variable too.
Background: The Dying Light game checks for the version of gl, when I try run it, it crashes:
Detected OpenGL Version: 3.3 (Compatibility Profile) Mesa 19.0.8
Required OpenGL version: 3.3
Please update your display driver.
There's a few posts here and on the steam site that suggest using the variable, but the compat check still fails
MESA_GL_VERSION_OVERRIDE=3.3FC
.