Remove GL_ARB_shading_language_100

This extension should really be called GL_ARB_shading_language (without the _100). But what about applications using it? :frowning:

The reason it’s called GL_ARB_shading_language_100 is because later there will be a GL_ARB_shading_language_110 (or something like that) with even more l33t features.

Actually, there will never be a GL_ARB_shading_language_110 because the GL version along with a define you put in your GLSL code will define the GLSL version

#version 110

void main()
{
  ....
}

If I’m not mistaken, the above is the way to do it.

So anyway, the GL version is way to go.

Actually, this extension string doesn’t define the OpenGL Shading Language version supported, as you can see in http://oss.sgi.com/projects/ogl-sample/registry/ARB/shading_language_100.txt :
“This extension string indicates that the OpenGL Shading Language is supported.”.

The supported version can be queried with:
glGetString(GL_SHADING_LANGUAGE_VERSION).

This extension string is wrongly named. Of course, for compatibility reasons, it will stay that “ugly” :wink: forever…

Originally posted by V-man:
[b] Actually, there will never be a GL_ARB_shading_language_110 because the GL version along with a define you put in your GLSL code will define the GLSL version

#version 110

void main()
{

}

If I'm not mistaken, the above is the way to do it.

So anyway, the GL version is way to go. [/b]
Yea but doesn’t that define witch version is going to be used, the string GL_ARB_shading_language_100 shows if that shading language is supported, or at least that was the original plan.
There may be other ways to check it but this is the way things are defined in openGL.

There are 2 versions, as usual.
The extension version GL_SHADING_LANGUAGE_VERSION_ARB and the core version GL_SHADING_LANGUAGE_VERSION

I think GL_ARB_shading_language_100 and even if you had GL_ARB_shading_language, is pointless because there is also GL_ARB_shader_objects, GL_ARB_fragment_shader, GL_ARB_vertex_shader.

Yea but doesn’t that define witch version is going to be used, the string GL_ARB_shading_language_100 shows if that shading language is supported
GL_ARB_shading_language_100 is obsolete. So are the ARB version of the functions.

ATI and NV drivers support 1.10, but there is no GL_ARB_shading_language_110
If you have GL 2.0, then you have GLSL 1.10 and you have the core functions.