diff options
author | Brian Paul <[email protected]> | 2008-05-07 18:51:44 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-07 18:51:44 -0600 |
commit | 5b5c9315275752add1215dba0f86d5f5068d856b (patch) | |
tree | 90dec078e7417a98ae9be307ee5fb8f6a3705bff /src/mesa/shader/program.c | |
parent | 12a317b93a635a623a8d0b9d0cb200ba8b3ae98b (diff) |
fix refcounting bugs in tnl/tex program caches
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r-- | src/mesa/shader/program.c | 6 |
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 |