summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-06-25 14:47:03 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-06-25 14:47:03 +0000
commit63cd4098dc8dcbb7eb2038c695da3057dbffdeec (patch)
treeff7fba39d2049631040bfa097572529a1daaf092
parent73bece9bd29b84ce0e13b73467111fdccbb0af0c (diff)
remove program from hash table when deleted (bug 979514)
-rw-r--r--src/mesa/main/program.c4
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]);
}
}
}