mirror of https://github.com/axmolengine/axmol.git
Use type GLchar for glGetShaderInfoLog
This commit is contained in:
parent
143a1ab1f6
commit
8750096575
|
@ -61,7 +61,7 @@ void ShaderModuleGL::compileShader(ShaderStage stage, const std::string &source)
|
||||||
|
|
||||||
if (logLength > 1) {
|
if (logLength > 1) {
|
||||||
cocos2d::Data errorLog{};
|
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());
|
cocos2d::log("cocos2d: ERROR: Failed to compile shader, detail: %s\n%s", errorLog.getBytes(), source.c_str());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue