call ctx->Driver.NewProgram() instead of _mesa_new_program()
authorBrian <brian.paul@tungstengraphics.com>
Tue, 24 Jul 2007 15:56:44 +0000 (09:56 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 24 Jul 2007 15:56:44 +0000 (09:56 -0600)
src/mesa/shader/program.c
src/mesa/shader/slang/slang_compile.c

index 420591982825d95fc8401f784032b44a726da747..1f227390afd3551dcb67eb3a56c34d895c59b7a7 100644 (file)
@@ -333,7 +333,7 @@ _mesa_clone_program(GLcontext *ctx, const struct gl_program *prog)
 {
    struct gl_program *clone;
 
-   clone = _mesa_new_program(ctx, prog->Target, prog->Id);
+   clone = ctx->Driver.NewProgram(ctx, prog->Target, prog->Id);
    if (!clone)
       return NULL;
 
index 70f5aac16d484ba36974c7b1a78e872cc81540a4..4e29e8dcc90adcbb406dbec9a2c4d40b4ea09a4a 100644 (file)
@@ -2135,7 +2135,7 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
          progTarget = GL_FRAGMENT_PROGRAM_ARB;
       shader->Programs
          = (struct gl_program **) malloc(sizeof(struct gl_program*));
-      shader->Programs[0] = _mesa_new_program(ctx, progTarget, 1);
+      shader->Programs[0] = ctx->Driver.NewProgram(ctx, progTarget, 1);
       shader->NumPrograms = 1;
 
       shader->Programs[0]->Parameters = _mesa_new_parameter_list();