mesa: add switch case for GL_VERTEX_STATE_PROGRAM_NV in _mesa_new_program()
authorBrian Paul <brianp@vmware.com>
Sat, 18 Apr 2009 16:08:54 +0000 (10:08 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 18 Apr 2009 16:08:54 +0000 (10:08 -0600)
Fixes bug seen in progs/tests/vptest1.c

src/mesa/shader/program.c

index 2e5632710e475b480aa88e5661eb55b6469b0209..d270bf9e1c36cc07032f87fc57a37599b0688cb2 100644 (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;