summaryrefslogtreecommitdiff
path: root/cogl/cogl-glsl-shader-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2013-01-19 16:00:33 +0000
committerRobert Bragg <robert@linux.intel.com>2013-01-22 17:48:07 +0000
commit7fa04bb1a667abd27ffcf39bd595bc777dbe75c3 (patch)
treece58d3bedf8670202ef5e8352dfa80478b9c1f19 /cogl/cogl-glsl-shader-private.h
parent1c449c67f6a02963fdcdbaaec44079a3b6aaa74c (diff)
downloadcogl-7fa04bb1a667abd27ffcf39bd595bc777dbe75c3.tar.gz
Adds back tex_coord array for CoglShader compatibility
This adds back compatibility for CoglShaders that reference the cogl_tex_coord_in[] or cogl_tex_coord_out[] varyings. Unlike the previous way this was done this patch maintains the use of layer numbers for attributes and maintains forwards compatibility by letting shaders alternatively access the per-layer tex_coord varyings via cogl_tex_coord%i_in/out defines that index into the array.
Diffstat (limited to 'cogl/cogl-glsl-shader-private.h')
-rw-r--r--cogl/cogl-glsl-shader-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl-glsl-shader-private.h b/cogl/cogl-glsl-shader-private.h
index 1ec9762d..816aec24 100644
--- a/cogl/cogl-glsl-shader-private.h
+++ b/cogl/cogl-glsl-shader-private.h
@@ -28,6 +28,7 @@ _cogl_glsl_shader_set_source_with_boilerplate (CoglContext *ctx,
const char *version_string,
GLuint shader_gl_handle,
GLenum shader_gl_type,
+ CoglPipeline *pipeline,
GLsizei count_in,
const char **strings_in,
const GLint *lengths_in);