Skip to content

opengl: subrenderer: fix GLSL link issue on linux ES2

The GLSL version was chosen at compile time, but the sub_renderer is built for both OpenGL and GL ES, and linux can have both implementations at the same time, so ensure the correct version will be picked at runtime.

Fixes the following error in test:

test_opengl gl error: program: error: vertex shader lacks `main'

The branch also adds shader printing in the case the program linking fails.

Merge request reports