Moved local variable into local scope to avoid it being created when not used.
This commit is contained in:
parent
b1c342c027
commit
6a4741cf54
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user