Changed Program::apply() to Program::compileGLObjects() to avoid the Program::apply() setting of setLastAppliedProgramObjects for affect current state.

This commit is contained in:
Robert Osfield 2016-12-21 11:02:29 +00:00 committed by scrawl
parent 95818b0819
commit 232d227170

View File

@ -297,7 +297,7 @@ double IncrementalCompileOperation::CompileProgramOp::estimatedTimeForCompile(Co
bool IncrementalCompileOperation::CompileProgramOp::compile(CompileInfo& compileInfo)
{
//OSG_NOTICE<<"CompileProgramOp::compile(..)"<<std::endl;
_program->apply(*compileInfo.getState());
_program->compileGLObjects(*compileInfo.getState());
return true;
}