mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-18 08:42:52 +03:00
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:
@@ -236,6 +236,8 @@ bool cShaderProgram::Link() {
|
||||
mLinkLog.resize( logarraysize );
|
||||
|
||||
glGetProgramInfoLog( Handler(), logarraysize, &logsize, reinterpret_cast<GLchar*>( &mLinkLog[0] ) );
|
||||
|
||||
mLinkLog.resize( logsize );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user