GNOME Bugzilla – Bug 629343
[window-dim Shader] Bump GLSL version to 1.20
Last modified: 2010-09-11 19:42:16 UTC
See patch.
Created attachment 170014 [details] [review] [window-dim Shader] Bump GLSL version to 1.20 The shader currently forces GLSL 1.0 to avoid being incompatible with older hardware but is still using features not available in 1.0. Strict compilers fail to compile the shader: error C7506: OpenGL/ES does not define the global variable gl_TexCoord As every hardware/driver that supports 1.0 also supports 1.20 bumping the version to fix it is safe.
(In reply to comment #1) > still using features not available in 1.0. It should be there according http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.10.59.pdf > Strict compilers fail to compile the shader: Which one?
(In reply to comment #2) > (In reply to comment #1) > > still using features not available in 1.0. > It should be there according > http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.10.59.pdf That's 1.10 not 1.0 .. in fact #version 110 is working fine too. > > Strict compilers fail to compile the shader: > Which one? NVIDIA's cg complier (i.e the one shipped in the 260.19.04 driver release).
Created attachment 170037 [details] [review] [windowDimmer] Bump GLSL version to 1.10 The shader currently forces GLSL 1.0 to avoid being incompatible with older hardware but is still using features not available in 1.0. Strict compilers fail to compile the shader: error C7506: OpenGL/ES does not define the global variable gl_TexCoord As every hardware/driver that supports 1.0 also supports 1.10 bumping the version to fix it is safe. ----- Bumping to 1.10 appears to be sufficent.
Comment on attachment 170037 [details] [review] [windowDimmer] Bump GLSL version to 1.10 GLSL 1.10 is part of OpenGL 2.0. It have specification in opengl.org (opposite version 1.00).
Attachment 170037 [details] pushed as 687bfbb - [windowDimmer] Bump GLSL version to 1.10