Merge remote-tracking branch 'upstream/master' into osganimation

This commit is contained in:
Julien Valentin
2017-09-01 20:03:05 +02:00
2 changed files with 3 additions and 2 deletions

View File

@@ -517,9 +517,10 @@ void Program::apply( osg::State& state ) const
// for shader debugging: to minimize performance impact,
// optionally validate based on notify level.
// TODO: enable this using notify level, or perhaps its own getenv()?
#ifndef __APPLE__
if( osg::isNotifyEnabled(osg::INFO) )
pcp->validateProgram();
#endif
pcp->useProgram();
state.setLastAppliedProgramObject(pcp);
}