gl_shader: do not require GL_ARB_texture_float in shader - #1746
Conversation
Do not require GL_ARB_texture_float in shader. This syntax may not be supported.
594ab28 to
b7e8b15
Compare
|
I now consider it a driver bug. Now that I fixed the stupid double-return, it now complains that |
|
Maybe that extension name just shouldn't appear in GLSL directives? https://registry.khronos.org/OpenGL/extensions/ARB/ARB_texture_float.txt doesn't say anything about
|
|
I think slipher is right. Especially given that the specification says |
b7e8b15 to
92544a2
Compare
|
OK, if I'm right, the current change prevents the At least it fixes the problem on my end. |
|
LGTM |
Do not require GL_ARB_texture_float in vertex shader, this is a vertex-only extension.
This is only for convenience, I get this error on both Mesa
radeonsiandllvmpipedrivers when I downgrade the GL/GLSL version to test GLSL 1.20, usingMESA_GL_VERSION_OVERRIDE=2.1 MESA_GLSL_VERSION_OVERRIDE=120environment variables:I haven't got this error on actual GL 2.1 / GLSL 1.20 hardware I recently tested (Nvidia, Intel).
There may be other extensions that may be specific to fragment shaders, but they are probably just missing or unused with such GL version so I didn't faced other errors.
While moving other fragment-specific extensions to the fragment-specific list may be better, for “purity” and “just in case” concerns, it is actually not required to make the shaders buildable again on such test bed, so it's not in the scope of this PR.