mesa: add switch case for GL_VERTEX_STATE_PROGRAM_NV in _mesa_new_program()

Fixes bug seen in progs/tests/vptest1.c
This commit is contained in:
Brian Paul 2009-04-18 10:08:54 -06:00
parent 2bf326af10
commit c5af2ed60f
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ _mesa_new_program(GLcontext *ctx, GLenum target, GLuint id)
struct gl_program *prog;
switch (target) {
case GL_VERTEX_PROGRAM_ARB: /* == GL_VERTEX_PROGRAM_NV */
case GL_VERTEX_STATE_PROGRAM_NV:
prog = _mesa_init_vertex_program(ctx, CALLOC_STRUCT(gl_vertex_program),
target, id );
break;