Resize the shader program link log after getting the log to avoid having NULL chars at the end of the string.

This commit is contained in:
Martín Lucas Golini
2013-08-23 15:26:09 -03:00
parent e98ab736af
commit 52dfc3bafa

View File

@@ -236,6 +236,8 @@ bool cShaderProgram::Link() {
mLinkLog.resize( logarraysize );
glGetProgramInfoLog( Handler(), logarraysize, &logsize, reinterpret_cast<GLchar*>( &mLinkLog[0] ) );
mLinkLog.resize( logsize );
}
#endif