Add more detailed log errors when glsl shaders fail to compile or link.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5791 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
8e384e5c23
commit
ecf74091ec
|
@ -339,7 +339,9 @@ bool COpenGLSLMaterialRenderer::createShader(GLenum shaderType, const char* shad
|
|||
|
||||
if (status != GL_TRUE)
|
||||
{
|
||||
os::Printer::log("GLSL shader failed to compile", ELL_ERROR);
|
||||
core::stringc typeInfo("shaderType: ");
|
||||
typeInfo += typeInfo;
|
||||
os::Printer::log("GLSL (> 2.x) shader failed to compile", typeInfo.c_str(), ELL_ERROR);
|
||||
// check error message and log it
|
||||
GLint maxLength=0;
|
||||
GLint length;
|
||||
|
@ -375,7 +377,9 @@ bool COpenGLSLMaterialRenderer::createShader(GLenum shaderType, const char* shad
|
|||
|
||||
if (!status)
|
||||
{
|
||||
os::Printer::log("GLSL shader failed to compile", ELL_ERROR);
|
||||
core::stringc typeInfo("shaderType: ");
|
||||
typeInfo += typeInfo;
|
||||
os::Printer::log("GLSL shader failed to compile", typeInfo.c_str(), ELL_ERROR);
|
||||
// check error message and log it
|
||||
GLint maxLength=0;
|
||||
GLsizei length;
|
||||
|
@ -414,7 +418,7 @@ bool COpenGLSLMaterialRenderer::linkProgram()
|
|||
|
||||
if (!status)
|
||||
{
|
||||
os::Printer::log("GLSL shader program failed to link", ELL_ERROR);
|
||||
os::Printer::log("GLSL (> 2.x) shader program failed to link", ELL_ERROR);
|
||||
// check error message and log it
|
||||
GLint maxLength=0;
|
||||
GLsizei length;
|
||||
|
@ -452,7 +456,7 @@ bool COpenGLSLMaterialRenderer::linkProgram()
|
|||
|
||||
if (maxlen == 0)
|
||||
{
|
||||
os::Printer::log("GLSL: failed to retrieve uniform information", ELL_ERROR);
|
||||
os::Printer::log("GLSL (> 2.x): failed to retrieve uniform information", ELL_ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue