summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/shader_api.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-04-12 15:45:02 -0600
committerBrian <[email protected]>2007-04-12 15:45:02 -0600
commit99193e4f7454bf5a9cfa0bc3ee6935d8cc85b7fa (patch)
treea2f309a53646e2e932d84a93b8ae0f4b85a69477 /src/mesa/shader/shader_api.c
parent5b74fe08897d8897161566ef4cd59b09474d5837 (diff)
disable debug printfs
Diffstat (limited to 'src/mesa/shader/shader_api.c')
-rw-r--r--src/mesa/shader/shader_api.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 47622fdd521..fc1ae287f4f 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -135,7 +135,6 @@ _mesa_free_shader_program_data(GLcontext *ctx,
void
_mesa_free_shader_program(GLcontext *ctx, struct gl_shader_program *shProg)
{
- printf("FREE SHADER PROG %d\n", shProg->Name);
_mesa_free_shader_program_data(ctx, shProg);
if (shProg->Shaders) {
_mesa_free(shProg->Shaders);
@@ -184,8 +183,8 @@ _mesa_reference_shader_program(GLcontext *ctx,
if (shProg) {
shProg->RefCount++;
- printf("SHPROG INCR %p (%d) to %d\n",
- (void*) shProg, shProg->Name, shProg->RefCount);
+ /*printf("SHPROG INCR %p (%d) to %d\n",
+ (void*) shProg, shProg->Name, shProg->RefCount);*/
*ptr = shProg;
}
}
@@ -236,7 +235,6 @@ void
_mesa_free_shader(GLcontext *ctx, struct gl_shader *sh)
{
GLuint i;
- printf("FREE SHADER %d\n", sh->Name);
if (sh->Source)
_mesa_free((void *) sh->Source);
if (sh->InfoLog)
@@ -274,8 +272,8 @@ _mesa_reference_shader(GLcontext *ctx, struct gl_shader **ptr,
ASSERT(old->RefCount > 0);
old->RefCount--;
- printf("SHADER DECR %p (%d) to %d\n",
- (void*) old, old->Name, old->RefCount);
+ /*printf("SHADER DECR %p (%d) to %d\n",
+ (void*) old, old->Name, old->RefCount);*/
deleteFlag = (old->RefCount == 0);
if (deleteFlag) {
@@ -290,8 +288,8 @@ _mesa_reference_shader(GLcontext *ctx, struct gl_shader **ptr,
if (sh) {
/* reference new */
sh->RefCount++;
- printf("SHADER INCR %p (%d) to %d\n",
- (void*) sh, sh->Name, sh->RefCount);
+ /*printf("SHADER INCR %p (%d) to %d\n",
+ (void*) sh, sh->Name, sh->RefCount);*/
*ptr = sh;
}
}