From 63cd4098dc8dcbb7eb2038c695da3057dbffdeec Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 25 Jun 2004 14:47:03 +0000 Subject: remove program from hash table when deleted (bug 979514) --- src/mesa/main/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c index 22b687a2d9..bdcc51f7b9 100644 --- a/src/mesa/main/program.c +++ b/src/mesa/main/program.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.0 + * Version: 6.0.2 * * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * @@ -948,6 +948,8 @@ _mesa_DeletePrograms(GLsizei n, const GLuint *ids) if (prog->RefCount <= 0) { _mesa_delete_program(ctx, prog); } + /* always remove from hash table */ + _mesa_HashRemove(ctx->Shared->Programs, ids[i]); } } } -- cgit v1.2.3