Skip to content

Commit

Permalink
From Jan Peciva, change information about failed shader compilation/l…
Browse files Browse the repository at this point in the history
…inking/validation to OSG_WARN.
  • Loading branch information
robertosfield committed Jun 14, 2010
1 parent da60a3c commit d1a3350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osg/Program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,16 +613,16 @@ bool Program::PerContextProgram::validateProgram()
if( validated == GL_TRUE)
return true;

OSG_INFO << "glValidateProgram FAILED \"" << _program->getName() << "\""
OSG_WARN << "glValidateProgram FAILED \"" << _program->getName() << "\""
<< " id=" << _glProgramHandle
<< " contextID=" << _contextID
<< std::endl;

std::string infoLog;
if( getInfoLog(infoLog) )
OSG_INFO << "infolog:\n" << infoLog << std::endl;
OSG_WARN << "infolog:\n" << infoLog << std::endl;

OSG_INFO << std::endl;
OSG_WARN << std::endl;

return false;
}
Expand Down

0 comments on commit d1a3350

Please sign in to comment.