View Full Version : GLSL version confusion

05-08-2013, 02:58 AM
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.

Alfonse Reinheart
05-08-2013, 04:28 AM
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.

05-08-2013, 01:24 PM
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/).

05-08-2013, 01:53 PM
Answering myself.
Just found out that "A WebGL implementation must only accept shaders which conform to The OpenGL ES Shading Language, Version 1.00".

Alfonse Reinheart
05-08-2013, 08:12 PM
According to Khronos OpenGL ES 1.1 does exist (http://www.khronos.org/opengles/1_X/).

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.