mesa: remove: unused gl_vertex_program::TnlData field

This commit is contained in:
Brian Paul 2009-09-24 13:38:27 -06:00
parent 228aa45fcb
commit e33ea11c14
2 changed files with 0 additions and 8 deletions

View file

@ -1834,7 +1834,6 @@ struct gl_vertex_program
struct gl_program Base; /**< base class */
GLboolean IsNVProgram; /**< is this a GL_NV_vertex_program program? */
GLboolean IsPositionInvariant;
void *TnlData; /**< should probably use Base.DriverData */
};

View file

@ -351,13 +351,6 @@ _mesa_delete_program(GLcontext *ctx, struct gl_program *prog)
_mesa_free_parameter_list(prog->Attributes);
}
/* XXX this is a little ugly */
if (prog->Target == GL_VERTEX_PROGRAM_ARB) {
struct gl_vertex_program *vprog = (struct gl_vertex_program *) prog;
if (vprog->TnlData)
_mesa_free(vprog->TnlData);
}
_mesa_free(prog);
}