diff options
author | Zou Nan hai <nanhai.zou@intel.com> | 2007-07-17 11:19:52 +0800 |
---|---|---|
committer | Zou Nan hai <nanhai.zou@intel.com> | 2007-07-17 11:19:52 +0800 |
commit | 719cf0b7958d0dedf8727c97eaddb6a1f31977e1 (patch) | |
tree | 2390df2b65c2abff72d0bdda1c2136aaf6a0f076 /src/mesa/shader/program.c | |
parent | 575f3e918f00bdc0faa4a173820015b24175696f (diff) |
Use ProgramStringNotify
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r-- | src/mesa/shader/program.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 4205919828..03be368a92 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -242,6 +242,8 @@ _mesa_init_vertex_program( GLcontext *ctx, struct gl_vertex_program *prog, struct gl_program * _mesa_new_program(GLcontext *ctx, GLenum target, GLuint id) { + if (ctx->Driver.NewProgram) + return ctx->Driver.NewProgram(ctx, target, id); switch (target) { case GL_VERTEX_PROGRAM_ARB: /* == GL_VERTEX_PROGRAM_NV */ return _mesa_init_vertex_program(ctx, CALLOC_STRUCT(gl_vertex_program), |