From 4b4f7cd9ea13ba83eccfc951461718e8438f90a8 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 1 Jan 2006 13:12:31 +0000 Subject: [PATCH] hide GLSL compile warnings when developer is 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5884 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gl_backend.c b/gl_backend.c index 1e7e788c..fa007258 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -777,7 +777,7 @@ unsigned int GL_Backend_CompileProgram(int vertexstrings_count, const char **ver qglGetObjectParameterivARB(vertexshaderobject, GL_OBJECT_COMPILE_STATUS_ARB, &vertexshadercompiled); qglGetInfoLogARB(vertexshaderobject, sizeof(compilelog), NULL, compilelog); if (compilelog[0]) - Con_Printf("vertex shader compile log:\n%s\n", compilelog); + Con_DPrintf("vertex shader compile log:\n%s\n", compilelog); if (!vertexshadercompiled) { qglDeleteObjectARB(programobject); @@ -806,7 +806,7 @@ unsigned int GL_Backend_CompileProgram(int vertexstrings_count, const char **ver qglGetObjectParameterivARB(fragmentshaderobject, GL_OBJECT_COMPILE_STATUS_ARB, &fragmentshadercompiled); qglGetInfoLogARB(fragmentshaderobject, sizeof(compilelog), NULL, compilelog); if (compilelog[0]) - Con_Printf("fragment shader compile log:\n%s\n", compilelog); + Con_DPrintf("fragment shader compile log:\n%s\n", compilelog); if (!fragmentshadercompiled) { qglDeleteObjectARB(programobject); @@ -825,7 +825,7 @@ unsigned int GL_Backend_CompileProgram(int vertexstrings_count, const char **ver qglGetInfoLogARB(programobject, sizeof(compilelog), NULL, compilelog); if (compilelog[0]) { - Con_Printf("program link log:\n%s\n", compilelog); + Con_DPrintf("program link log:\n%s\n", compilelog); // software vertex shader is ok but software fragment shader is WAY // too slow, fail program if so. // NOTE: this string might be ATI specific, but that's ok because the -- 2.39.2