diff --git a/cocos/renderer/CCGLProgram.cpp b/cocos/renderer/CCGLProgram.cpp index efde49b3ba..e76356e142 100644 --- a/cocos/renderer/CCGLProgram.cpp +++ b/cocos/renderer/CCGLProgram.cpp @@ -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); + } }