glsl: Allow redeclaration of gl_Color and its variants in GLSL 1.30
authorChad Versace <chad.versace@intel.com>
Thu, 16 Dec 2010 00:32:47 +0000 (16:32 -0800)
committerChad Versace <chad.versace@intel.com>
Tue, 4 Jan 2011 18:49:10 +0000 (10:49 -0800)
commitb84e3f570f4b5aba1dd96760e090ae976d0e1cba
treea77ea67a4eb112c09db5a923020517582287256c
parent4a62a1c366703c5df10fd1d96f46ecb03ce45138
glsl: Allow redeclaration of gl_Color and its variants in GLSL 1.30

Allow redeclaration of the following built-in variables with an
interpolation qualifier in language versions >= 1.30:
   * gl_FrontColor
   * gl_BackColor
   * gl_FrontSecondaryColor
   * gl_BackSecondaryColor
   * gl_Color
   * gl_SecondaryColor

See section 4.3.7 of the GLSL 1.30 spec.
src/glsl/ast_to_hir.cpp