Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: GLSL version confusion

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2010
    Posts
    7

    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.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948
    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.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2010
    Posts
    7
    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/).

  4. #4
    Junior Member Newbie
    Join Date
    Oct 2010
    Posts
    7
    Answering myself.
    Just found out that "A WebGL implementation must only accept shaders which conform to The OpenGL ES Shading Language, Version 1.00".

  5. #5
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •