summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-22 10:27:03 -0600
committerBrian <[email protected]>2008-03-22 10:27:03 -0600
commitdc6fab90b437ed7f03f5cb239d3251b5b4f2cd56 (patch)
tree2c976b9041f95c2784e5e2ad2b495f3403783fbc /src/mesa/shader/program.c
parent731dec1bd52abbaf77f21fa37c9c192611dcd1a5 (diff)
use ctx->Driver.DeleteProgram() in a few more places
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r--src/mesa/shader/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 2097c395918..d2c9183558f 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -386,7 +386,7 @@ _mesa_clone_program(GLcontext *ctx, const struct gl_program *prog)
clone->Format = prog->Format;
clone->Instructions = _mesa_alloc_instructions(prog->NumInstructions);
if (!clone->Instructions) {
- _mesa_delete_program(ctx, clone);
+ ctx->Driver.DeleteProgram(ctx, clone);
return NULL;
}
_mesa_copy_instructions(clone->Instructions, prog->Instructions,