summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-20 14:38:00 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-20 14:38:00 -0600
commit13c74914067b7e49be7761534c1f6d3fb90f6f1f (patch)
tree2201806df65161b67d5a4fc105cc892793d00531 /src
parent4b4ac9ed3497d0cbf58311b83ed4a08a98bb854c (diff)
gallium: fix default case in st_new_program()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_program.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c
index b23e000a0b..a1694d93c5 100644
--- a/src/mesa/state_tracker/st_cb_program.c
+++ b/src/mesa/state_tracker/st_cb_program.c
@@ -89,8 +89,12 @@ static void st_use_program( GLcontext *ctx,
+/**
+ * Called via ctx->Driver.NewProgram() to allocate a new vertex or
+ * fragment program.
+ */
static struct gl_program *st_new_program( GLcontext *ctx,
- GLenum target,
+ GLenum target,
GLuint id )
{
switch (target) {
@@ -118,7 +122,8 @@ static struct gl_program *st_new_program( GLcontext *ctx,
}
default:
- return _mesa_new_program(ctx, target, id);
+ assert(0);
+ return NULL;
}
}