summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-18 10:21:00 -0600
committerBrian Paul <brianp@vmware.com>2009-04-18 10:21:00 -0600
commite7d499f9356247cf0a2dc31f950460c4f6a0db35 (patch)
tree01099679d04e632da7efdc8f6afbc90a6b570ced
parent51e7600d770083c5e29c884a4c688e911def3e93 (diff)
mesa: add switch case for GL_VERTEX_STATE_PROGRAM_NV in _mesa_new_program()
Fixes bug seen in progs/tests/vptest1.c (cherry picked from master, commit c5af2ed60fa4fe3f33b53a8e252e24cfa490a156)
-rw-r--r--src/mesa/shader/program.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 828db38a49..aa6c6c4951 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -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;