[cogl] Remove unused tex_coord_declarations variable



commit a8690a9a0dd2b91af36f8a8a3c71c2a4d30c097c
Author: Neil Roberts <neil linux intel com>
Date:   Sun Aug 25 01:51:51 2013 +0100

    Remove unused tex_coord_declarations variable
    
    This variable was a leftover from before commit e55b64a9cdc93 where
    the texture coord varyings were declared as an array as part of the
    shader boilerplate.
    
    Reviewed-by: Robert Bragg <robert linux intel com>

 cogl/cogl-glsl-shader.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/cogl/cogl-glsl-shader.c b/cogl/cogl-glsl-shader.c
index 8e50edb..b469ede 100644
--- a/cogl/cogl-glsl-shader.c
+++ b/cogl/cogl-glsl-shader.c
@@ -54,7 +54,6 @@ _cogl_glsl_shader_set_source_with_boilerplate (CoglContext *ctx,
   const char **strings = g_alloca (sizeof (char *) * (count_in + 4));
   GLint *lengths = g_alloca (sizeof (GLint) * (count_in + 4));
   int count = 0;
-  char *tex_coord_declarations = NULL;
 
   vertex_boilerplate = _COGL_VERTEX_SHADER_BOILERPLATE;
   fragment_boilerplate = _COGL_FRAGMENT_SHADER_BOILERPLATE;
@@ -119,6 +118,4 @@ _cogl_glsl_shader_set_source_with_boilerplate (CoglContext *ctx,
 
   GE( ctx, glShaderSource (shader_gl_handle, count,
                            (const char **) strings, lengths) );
-
-  g_free (tex_coord_declarations);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]