cogl-pipeline-glsl: Don't use gl_PointCoord on OpenGL
authorNeil Roberts <neil@linux.intel.com>
Wed, 24 Nov 2010 15:30:56 +0000 (15:30 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 24 Nov 2010 18:06:44 +0000 (18:06 +0000)
commit289e880efd4b7e2434619cbbe18ae444d4c52fd8
treeb3cb45de320c22f2496afc71ecd67e5d36e28ed8
parent9c32d07453fbc06c44e8c0fca6ef6e85f23ebf0b
cogl-pipeline-glsl: Don't use gl_PointCoord on OpenGL

We don't want to use gl_PointCoord to implement point sprites on big
GL because in that case we already use glTexEnv(GL_COORD_REPLACE) to
replace the texture coords with the point sprite coords. Although GL
also supports the gl_PointCoord variable, it requires GLSL 1.2 which
would mean we would have to declare the GLSL version and check for
it. We continue to use gl_PointCoord for GLES2 because it has no
glTexEnv function.
clutter/cogl/cogl/cogl-pipeline-glsl.c