summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorZou Nan hai <[email protected]>2007-07-17 11:19:52 +0800
committerZou Nan hai <[email protected]>2007-07-17 11:19:52 +0800
commit719cf0b7958d0dedf8727c97eaddb6a1f31977e1 (patch)
tree2390df2b65c2abff72d0bdda1c2136aaf6a0f076 /src/mesa/shader
parent575f3e918f00bdc0faa4a173820015b24175696f (diff)
Use ProgramStringNotify
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 42059198282..03be368a922 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),