From: Eric Anholt Date: Tue, 3 Jan 2012 21:27:18 +0000 (-0800) Subject: mesa: Remove the dead Varyings list in the program. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=501e2e3b6d64de9937d397b49ad3930d4bac3083;p=mesa.git mesa: Remove the dead Varyings list in the program. Reviewed-by: Paul Berry --- diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 50d7e341f56..332b80ab7a9 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -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? */ diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index 454007f8353..de66851e9c9 100644 --- a/src/mesa/main/shaderobj.c +++ b/src/mesa/main/shaderobj.c @@ -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, "");