cogl-shader.c: Don't add the common boilerplate twice
authorNeil Roberts <neil@linux.intel.com>
Mon, 29 Nov 2010 10:55:49 +0000 (10:55 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 29 Nov 2010 13:43:09 +0000 (13:43 +0000)
commitd046df8e6f1c1dfdf4144b1cbe2494d71ac3adc4
treea0b14671893dfd9d4aa18e84e829af696d3257e7
parentae300dc8e08d28dad821f7c843fe2b01783efb5a
cogl-shader.c: Don't add the common boilerplate twice

In 6246c2bd6 I moved the code to add the boilerplate to a shader to a
separate function and also made it so that the common boilerplate is
added as a separate string to glShaderSource. However I didn't notice
that the #define for the vertex and fragment shaders already includes
the common part so it was being added twice. Mesa seems to accept this
but it was causing problems on the IMG driver because COGL_VERSION was
defined twice.
clutter/cogl/cogl/cogl-shader.c