remove dead code in _mesa_new_program()

This commit is contained in:
Brian 2007-11-01 08:00:45 -06:00
parent 01b18abf93
commit 351a83163a
1 changed files with 0 additions and 7 deletions

View File

@ -285,13 +285,6 @@ _mesa_init_vertex_program( GLcontext *ctx, struct gl_vertex_program *prog,
struct gl_program *
_mesa_new_program(GLcontext *ctx, GLenum target, GLuint id)
{
#if 0
/* This was added by Nan hai Zou but disabled by BrianP since it
* causes infinite recursive calls.
*/
if (ctx->Driver.NewProgram)
return ctx->Driver.NewProgram(ctx, target, id);
#endif
switch (target) {
case GL_VERTEX_PROGRAM_ARB: /* == GL_VERTEX_PROGRAM_NV */
return _mesa_init_vertex_program(ctx, CALLOC_STRUCT(gl_vertex_program),