projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01b18ab
)
remove dead code in _mesa_new_program()
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 1 Nov 2007 14:00:45 +0000
(08:00 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 1 Nov 2007 15:00:26 +0000
(09:00 -0600)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index 43e6fb0be02b9614be9de89f814882b6bde85de2..2097c395918d2c7a2c9a2e241987563193805793 100644
(file)
--- a/
src/mesa/shader/program.c
+++ b/
src/mesa/shader/program.c
@@
-285,13
+285,6
@@
_mesa_init_vertex_program( GLcontext *ctx, struct gl_vertex_program *prog,
struct gl_program *
_mesa_new_program(GLcontext *ctx, GLenum target, GLuint id)
{
-#if 0
- /* This was added by Nan hai Zou but disabled by BrianP since it
- * causes infinite recursive calls.
- */
- if (ctx->Driver.NewProgram)
- return ctx->Driver.NewProgram(ctx, target, id);
-#endif
switch (target) {
case GL_VERTEX_PROGRAM_ARB: /* == GL_VERTEX_PROGRAM_NV */
return _mesa_init_vertex_program(ctx, CALLOC_STRUCT(gl_vertex_program),