GLSL version confusion

Hi,
Ubuntu 13.4 64bits
Intel Mobile GM965/GL960 Integrated Graphics Controller
My glxinfo gives:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) 965GM
OpenGL version string: 2.1 Mesa 9.1.1
OpenGL shading language version string: 1.20

When opening a WebGL page in FireFox as well as Chromium with “#version 110” (or anything higher than 100), I get an error:
“Error compiling shaderERROR: 0:1: ‘110’ : version number not supported”
How is this possible?
The GLSL version is 1.20.
Thanks.

WebGL uses OpenGL ES. OpenGL ES does not have a GLSL version 1.10, so no OpenGL ES implementation can use a version 110 shader.

Thanks for the answer. I thought that the SL language is being specified in the shader.
Still confused.
According to Khronos OpenGL ES 1.1 does exist (http://www.khronos.org/opengles/1_X/).

Answering myself.
Just found out that “A WebGL implementation must only accept shaders which conform to The OpenGL ES Shading Language, Version 1.00”.

According to Khronos OpenGL ES 1.1 does exist (OpenGL ES Overview - The Khronos Group Inc).

Yes, OpenGL ES 1.1 exists. But OpenGL ES version 1.1 does not mean GLSL ES version 1.1. OpenGL ES version 2.0 uses GLSL ES version 1.0. They’re two separate versions.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.