diff --git a/cocos/renderer/CCGLProgram.cpp b/cocos/renderer/CCGLProgram.cpp index f1c59731f4..efde49b3ba 100644 --- a/cocos/renderer/CCGLProgram.cpp +++ b/cocos/renderer/CCGLProgram.cpp @@ -319,6 +319,10 @@ void GLProgram::parseVertexAttribs() } } } + else + { + getVertexShaderLog(); + } } void GLProgram::parseUniforms() @@ -371,6 +375,11 @@ void GLProgram::parseUniforms() } } } + else + { + getFragmentShaderLog(); + } + } Uniform* GLProgram::getUniform(const std::string &name)