diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-06-25 14:47:03 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-06-25 14:47:03 +0000 |
commit | 63cd4098dc8dcbb7eb2038c695da3057dbffdeec (patch) | |
tree | ff7fba39d2049631040bfa097572529a1daaf092 | |
parent | 73bece9bd29b84ce0e13b73467111fdccbb0af0c (diff) |
remove program from hash table when deleted (bug 979514)
-rw-r--r-- | src/mesa/main/program.c | 4 |
1 files changed, 3 insertions, 1 deletions
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]); } } } |