Fix improved log-message from last commit.

Sorry, copy-pasted wrong variable... didn't improve log last time.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5792 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2019-03-21 14:00:17 +00:00
parent ecf74091ec
commit a450a0e391
1 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ bool COpenGLSLMaterialRenderer::createShader(GLenum shaderType, const char* shad
if (status != GL_TRUE)
{
core::stringc typeInfo("shaderType: ");
typeInfo += typeInfo;
typeInfo += core::stringc((unsigned long)shaderType);
os::Printer::log("GLSL (> 2.x) shader failed to compile", typeInfo.c_str(), ELL_ERROR);
// check error message and log it
GLint maxLength=0;
@ -378,7 +378,7 @@ bool COpenGLSLMaterialRenderer::createShader(GLenum shaderType, const char* shad
if (!status)
{
core::stringc typeInfo("shaderType: ");
typeInfo += typeInfo;
typeInfo += core::stringc((unsigned long)shaderType);
os::Printer::log("GLSL shader failed to compile", typeInfo.c_str(), ELL_ERROR);
// check error message and log it
GLint maxLength=0;