mesa: Remove the dead Varyings list in the program.
authorEric Anholt <eric@anholt.net>
Tue, 3 Jan 2012 21:27:18 +0000 (13:27 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 5 Jan 2012 17:11:29 +0000 (09:11 -0800)
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/mtypes.h
src/mesa/main/shaderobj.c

index 50d7e341f5675ed98029f9f7b2db9d35627b5e16..332b80ab7a93999ad40470bc71c39ab4c631cd63 100644 (file)
@@ -2297,7 +2297,6 @@ struct gl_shader_program
    /** Which texture target is being sampled (TEXTURE_1D/2D/3D/etc_INDEX) */
    gl_texture_index SamplerTargets[MAX_SAMPLERS];
 
-   struct gl_program_parameter_list *Varying;
    GLboolean LinkStatus;   /**< GL_LINK_STATUS */
    GLboolean Validated;
    GLboolean _Used;        /**< Ever used for drawing? */
index 454007f83534c558677ca623f9cd8c2d8482e2c4..de66851e9c9549f0d4281b62d41db573e0679d87 100644 (file)
@@ -286,11 +286,6 @@ _mesa_clear_shader_program_data(struct gl_context *ctx,
       shProg->UniformHash = NULL;
    }
 
-   if (shProg->Varying) {
-      _mesa_free_parameter_list(shProg->Varying);
-      shProg->Varying = NULL;
-   }
-
    assert(shProg->InfoLog != NULL);
    ralloc_free(shProg->InfoLog);
    shProg->InfoLog = ralloc_strdup(shProg, "");