gallium: fix default case in st_new_program()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 20 May 2008 20:38:00 +0000 (14:38 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 20 May 2008 20:38:00 +0000 (14:38 -0600)
src/mesa/state_tracker/st_cb_program.c

index b23e000a0b079b3bd670f9f80242b8e7559d8ee2..a1694d93c5dc87fd8337a780e68f42d258919d55 100644 (file)
@@ -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;
    }
 }