From: havoc Date: Sat, 9 Jul 2011 20:25:49 +0000 (+0000) Subject: print shader compile and link logs always if developer_extra 1 (you get X-Git-Tag: xonotic-v0.5.0~78 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b3dad32160a6caf0e0a867a7ddb31e2e278b77d;p=xonotic%2Fdarkplaces.git print shader compile and link logs always if developer_extra 1 (you get this with -developer2 on the commandline) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11241 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=ef1af8732c71134a950ef72f14627a39d29cac0d --- diff --git a/gl_backend.c b/gl_backend.c index 74938dc5..9f9cfad0 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -2459,7 +2459,7 @@ qboolean GL_Backend_CompileShader(int programobject, GLenum shadertypeenum, cons qglCompileShader(shaderobject);CHECKGLERROR qglGetShaderiv(shaderobject, GL_COMPILE_STATUS, &shadercompiled);CHECKGLERROR qglGetShaderInfoLog(shaderobject, sizeof(compilelog), NULL, compilelog);CHECKGLERROR - if (compilelog[0] && (strstr(compilelog, "error") || strstr(compilelog, "ERROR") || strstr(compilelog, "Error") || strstr(compilelog, "WARNING") || strstr(compilelog, "warning") || strstr(compilelog, "Warning"))) + if (compilelog[0] && (strstr(compilelog, "error") || strstr(compilelog, "ERROR") || strstr(compilelog, "Error") || strstr(compilelog, "WARNING") || strstr(compilelog, "warning") || strstr(compilelog, "Warning") || developer_extra.integer)) { int i, j, pretextlines = 0; for (i = 0;i < numstrings - 1;i++) @@ -2518,7 +2518,7 @@ unsigned int GL_Backend_CompileProgram(int vertexstrings_count, const char **ver qglGetProgramInfoLog(programobject, sizeof(linklog), NULL, linklog);CHECKGLERROR if (linklog[0]) { - if (strstr(linklog, "error") || strstr(linklog, "ERROR") || strstr(linklog, "Error") || strstr(linklog, "WARNING") || strstr(linklog, "warning") || strstr(linklog, "Warning")) + if (strstr(linklog, "error") || strstr(linklog, "ERROR") || strstr(linklog, "Error") || strstr(linklog, "WARNING") || strstr(linklog, "warning") || strstr(linklog, "Warning") || developer_extra.integer) Con_DPrintf("program link log:\n%s\n", linklog); // software vertex shader is ok but software fragment shader is WAY // too slow, fail program if so.