diff --git a/src/osg/Program.cpp b/src/osg/Program.cpp index d54fb372f..493d9fc4e 100644 --- a/src/osg/Program.cpp +++ b/src/osg/Program.cpp @@ -187,7 +187,7 @@ int Program::compare(const osg::StateAttribute& sa) const void Program::compileGLObjects( osg::State& state ) const { - if( isFixedFunction() ) return; + if( _shaderList.empty() ) return; for( unsigned int i=0; i < _shaderList.size(); ++i ) { @@ -416,7 +416,7 @@ void Program::apply( osg::State& state ) const const GLExtensions* extensions = state.get(); if( ! extensions->isGlslSupported ) return; - if( isFixedFunction() ) + if( _shaderList.empty() ) { extensions->glUseProgram( 0 ); state.setLastAppliedProgramObject(0);