Update CCGLProgram.cpp

add shader linking log
This commit is contained in:
samael 2014-11-20 11:41:16 +08:00
parent 26b95d3dae
commit f60b6bbd91
1 changed files with 7 additions and 2 deletions

View File

@ -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);
}
}