Open j-w-c-b opened 1 year ago
Won't there be interoperability issues across platforms if a #version
line is hard-coded into glsl_attach_shader_source()
in src/opengl/ogl_shader.c as in #1444 ? Wouldn't it be preferable if the application sorted this out instead of Allegro?
I was trying to build xu4 on my mac this weekend, and ran into some issues getting it to run. It uses some GLSL shaders to smoothly scale some of the 80s graphics, but they use modern GL features which the display returned by allegro5 doesn't support on macos.
From what I can tell the issues are
#version xxx
tag when compiling the shaders; macos is strict about that for the 3.2+ profiles---they must match the version used by the display.I'll create a PR with my changes for this, but I started the weekend knowing nothing about shaders, so it might not be quite right, but is close.