mutter/cogl/driver/gl/gl
Neil Roberts cb178b7a3a Always add the #version pragma to shaders
Previously we would only add the #version pragma to shaders when
point sprite texture coordinates are enabled for a layer so that we
can access the gl_PointCoord builtin. However I don't think there's
any good reason not to just always request GLSL version 1.2 if it's
available. That way applications can always use gl_PointCoord without
having to enable point sprite texture coordinates.

This adds a glsl_version_to_use member to CoglContext which is used to
generate the #version pragma as part of the shader boilerplate. On
desktop GL this is set to 120 if version 1.2 is available, otherwise
it is left at 110. On GLES it is always left as 100.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit e4dfe8b07e8af111ecbcb0da20ff2a2875a2b5d0)

Conflicts:
	cogl/driver/gl/gl/cogl-driver-gl.c
2013-09-02 16:22:01 +01:00
..
cogl-driver-gl.c Always add the #version pragma to shaders 2013-09-02 16:22:01 +01:00
cogl-pipeline-fragend-arbfp-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-fragend-arbfp.c Remove cogl-internal.h 2013-01-22 17:48:17 +00:00
cogl-pipeline-progend-fixed-arbfp-private.h Clearly define 3 progends that own the frag+vertends 2013-01-22 17:48:00 +00:00
cogl-pipeline-progend-fixed-arbfp.c generalize driver description and selection 2013-08-23 14:51:43 +01:00
cogl-texture-driver-gl.c Don't set GL_TEXTURE_MAX_LEVEL on GLES 2013-01-25 18:21:09 +00:00