diff options
author | Brian <[email protected]> | 2008-03-22 10:27:55 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-22 10:27:55 -0600 |
commit | f8acc3965e3fa9ec40ca63f3ddd0cb33966e8c95 (patch) | |
tree | 5c0d5a3b15afb65aec56b7a638922569248a22b8 /src/mesa/shader/program.c | |
parent | dae7993afc56be1e71e600af60e01e51eab17eda (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 3869e317147..39c4ca1dd5d 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -354,7 +354,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, |