LandscapeRender: fixed off by one for shader warning

By PeterW
Maikel de Vries 2011-12-29 18:24:55 +01:00
parent 1687665806
commit 01e79fa307
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ void C4LandscapeRenderGL::DumpInfoLog(const char *szWhat, GLhandleARB hShader, i
if(iActualLength > iLength || iActualLength <= 0) return;
// Terminate, log
pBuf[iActualLength + 1] = '\0';
pBuf[iActualLength] = '\0';
LogSilentF(" gl: Compiling %s %d:", szWhat, iWorkaround);
LogSilent(pBuf);
delete[] pBuf;