glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

Consecutive Underscores are reserved in GLSL 1.20

Open mattdesl opened this issue 10 years ago • 0 comments

Running a rather large shader through glsl-optimizer with target ES20 gives me the following error in WebGL;

gl.getShaderInfoLog() ERROR: 0:80: 'q__19' : identifiers containing two consecutive underscores (__) are reserved as possible future keywords

This is defined in the spec, see 3.3: http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.20.8.pdf

mattdesl avatar Jun 10 '14 21:06 mattdesl