]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
hide GLSL compile warnings when developer is 0
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Jan 2006 13:12:31 +0000 (13:12 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Jan 2006 13:12:31 +0000 (13:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5884 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 1e7e788c6231f403899db61559279cd566c36d7a..fa00725844de3c26611f7f71026fd38d165ecc6a 100644 (file)
@@ -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