Moved local variable into local scope to avoid it being created when not used.

This commit is contained in:
Robert Osfield 2013-03-26 17:03:22 +00:00
parent b1c342c027
commit 6a4741cf54

View File

@ -567,10 +567,10 @@ void Shader::PerContextShader::compileShader(osg::State& state)
state.convertVertexShaderSourceToOsgBuiltIns(source);
}
std::string sourceWithLineNumbers = insertLineNumbers(source);
if (osg::getNotifyLevel()>=osg::INFO)
{
std::string sourceWithLineNumbers = insertLineNumbers(source);
OSG_INFO << "\nCompiling " << _shader->getTypename()
<< " source:\n" << sourceWithLineNumbers << std::endl;
}