mesa: remove: unused gl_vertex_program::TnlData field
authorBrian Paul <brianp@vmware.com>
Thu, 24 Sep 2009 19:38:27 +0000 (13:38 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 25 Sep 2009 01:34:19 +0000 (19:34 -0600)
src/mesa/main/mtypes.h
src/mesa/shader/program.c

index 54fa8981dddd4b3bc7b5be8e94872f13056b8982..4757c3efa5633a3e9e31ac4d4d540bb7bd8fbef9 100644 (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 */
 };
 
 
index 2cd6eb8a389d556ac7c8bae3ce18e31cff1a6cde..532adf4d3600c1350e443c9ad135da4fcde6ddf7 100644 (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);
 }