When I first tried to run dune3d (on void linux x86_musl, gtk-4.14.1, mesa-24.0.2) , I got a load of shader compiling errors along the lines of
Compile failure in fragment shader: 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES
Linking failure: error: vertex shader lacks `main'
...and the program aborted with gl error 1281 in ../src/canvas/glyph_renderer.cpp:44, (I guess that's where it first tries to use an uncompiled shader).
The oft suggested MESA_GL_VERSION_OVERRIDE=3.3 had no effect.
Patching thus fixed the problem for me, but I have no idea if that might cause problems on other systems (GL is a bit of a black art to me!)
(P.S. checking the result of the shader compilation would have made debugging a bit easier. It looks like create_shader does return 0 on error, but I guess that isn't being checked anywhere.)
When I first tried to run dune3d (on void linux x86_musl, gtk-4.14.1, mesa-24.0.2) , I got a load of shader compiling errors along the lines of
...and the program aborted with
gl error 1281 in ../src/canvas/glyph_renderer.cpp:44
, (I guess that's where it first tries to use an uncompiled shader).The oft suggested
MESA_GL_VERSION_OVERRIDE=3.3
had no effect.Patching thus fixed the problem for me, but I have no idea if that might cause problems on other systems (GL is a bit of a black art to me!)
(P.S. checking the result of the shader compilation would have made debugging a bit easier. It looks like
create_shader
does return 0 on error, but I guess that isn't being checked anywhere.)