forked from mirrors/0ad
Fixes printing a log of a GL shader compilation following b193633e59.
This was SVN commit r27745.
This commit is contained in:
@@ -291,9 +291,9 @@ bool CompileGLSL(GLuint shader, const VfsPath& file, const CStr& code)
|
||||
glGetShaderInfoLog(shader, length, nullptr, infolog.get());
|
||||
|
||||
if (ok)
|
||||
LOGMESSAGE("Info when compiling shader '%s':\n%s", file.string8(), infolog);
|
||||
LOGMESSAGE("Info when compiling shader '%s':\n%s", file.string8(), infolog.get());
|
||||
else
|
||||
LOGERROR("Failed to compile shader '%s':\n%s", file.string8(), infolog);
|
||||
LOGERROR("Failed to compile shader '%s':\n%s", file.string8(), infolog.get());
|
||||
}
|
||||
|
||||
ogl_WarnIfError();
|
||||
|
||||
Reference in New Issue
Block a user