Use type GLchar for glGetShaderInfoLog

This commit is contained in:
halx99 2021-05-27 14:52:09 +08:00
parent 143a1ab1f6
commit 8750096575
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void ShaderModuleGL::compileShader(ShaderStage stage, const std::string &source)
if (logLength > 1) {
cocos2d::Data errorLog{};
glGetShaderInfoLog(_shader, logLength, nullptr, (char*) errorLog.resize(logLength));
glGetShaderInfoLog(_shader, logLength, nullptr, (GLchar*) errorLog.resize(logLength));
cocos2d::log("cocos2d: ERROR: Failed to compile shader, detail: %s\n%s", errorLog.getBytes(), source.c_str());
}
else {