use ctx->Driver.DeleteProgram() in a few more places

This commit is contained in:
Brian
2008-03-22 10:27:03 -06:00
parent 731dec1bd5
commit dc6fab90b4
2 changed files with 4 additions and 4 deletions

View File

@@ -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,