mirror of https://github.com/axmolengine/axmol.git
parent
26b95d3dae
commit
f60b6bbd91
|
@ -321,7 +321,9 @@ void GLProgram::parseVertexAttribs()
|
|||
}
|
||||
else
|
||||
{
|
||||
getVertexShaderLog();
|
||||
GLchar ErrorLog[1024];
|
||||
glGetProgramInfoLog(_program, sizeof(ErrorLog), NULL, ErrorLog);
|
||||
CCLOG("Error linking shader program: '%s'\n", ErrorLog);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -377,7 +379,10 @@ void GLProgram::parseUniforms()
|
|||
}
|
||||
else
|
||||
{
|
||||
getFragmentShaderLog();
|
||||
GLchar ErrorLog[1024];
|
||||
glGetProgramInfoLog(_program, sizeof(ErrorLog), NULL, ErrorLog);
|
||||
CCLOG("Error linking shader program: '%s'\n", ErrorLog);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue