summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-07 18:51:44 -0600
committerBrian Paul <[email protected]>2008-05-07 18:51:44 -0600
commit5b5c9315275752add1215dba0f86d5f5068d856b (patch)
tree90dec078e7417a98ae9be307ee5fb8f6a3705bff /src/mesa/shader/program.c
parent12a317b93a635a623a8d0b9d0cb200ba8b3ae98b (diff)
fix refcounting bugs in tnl/tex program caches
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r--src/mesa/shader/program.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 8166e7e935c..39784a14161 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -303,7 +303,7 @@ void
_mesa_delete_program(GLcontext *ctx, struct gl_program *prog)
{
(void) ctx;
- ASSERT(prog);
+ ASSERT(prog); assert(prog->RefCount==0);
if (prog == &_mesa_DummyProgram)
return;
@@ -378,7 +378,7 @@ _mesa_reference_program(GLcontext *ctx,
GLboolean deleteFlag;
/*_glthread_LOCK_MUTEX((*ptr)->Mutex);*/
-#if 0
+#if 01
printf("Program %p %u 0x%x Refcount-- to %d\n",
*ptr, (*ptr)->Id, (*ptr)->Target, (*ptr)->RefCount - 1);
#endif
@@ -400,7 +400,7 @@ _mesa_reference_program(GLcontext *ctx,
if (prog) {
/*_glthread_LOCK_MUTEX(prog->Mutex);*/
prog->RefCount++;
-#if 0
+#if 01
printf("Program %p %u 0x%x Refcount++ to %d\n",
prog, prog->Id, prog->Target, prog->RefCount);
#endif