aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_program.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-20 14:38:45 -0600
committerBrian Paul <[email protected]>2008-05-20 14:38:45 -0600
commitcf1ae676ec7cbf3a8595d41fb6b5128ff142b402 (patch)
treebb0d896caa0dd92ac55f3bb93edf05ff4a4eeb77 /src/mesa/state_tracker/st_cb_program.c
parent71eb1088311b8309868d78e237452cb414728fbb (diff)
parent69fd676240f91b1a42a355b768f86d397b899002 (diff)
Merge branch 'gallium-0.1' into gallium-tex-surfaces
Diffstat (limited to 'src/mesa/state_tracker/st_cb_program.c')
-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 3154fc85aa4..f951a928ead 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;
}
}