OsdGLDrawRegistry : fixing an OSD error message prefix when program linking fails

This commit is contained in:
manuelk 2013-06-19 12:59:43 -07:00
parent 85be47a135
commit a419830ee8

View File

@ -343,7 +343,7 @@ OsdGLDrawRegistryBase::_CreateDrawConfig(
glGetProgramiv(program, GL_INFO_LOG_LENGTH, &infoLogLength);
char * infoLog = new char[infoLogLength];
glGetProgramInfoLog(program, infoLogLength, NULL, infoLog);
OsdError(OSD_GLSL_COMPILE_ERROR,
OsdError(OSD_GLSL_LINK_ERROR,
"Error linking GLSL program: %s\n", infoLog);
delete[] infoLog;
}