diff --git a/src/osg/Program.cpp b/src/osg/Program.cpp index 22e3ca052..7092a565a 100644 --- a/src/osg/Program.cpp +++ b/src/osg/Program.cpp @@ -633,10 +633,14 @@ Program::PerContextProgram* Program::getPCP(State& state) const bool Program::isFixedFunction() const { +#ifdef OSG_GL_FIXED_FUNCTION_AVAILABLE // A Program object having no attached Shaders is a special case: // it indicates that programmable shading is to be disabled, // and thus use GL 1.x "fixed functionality" rendering. return _shaderList.empty(); +#else + return false; +#endif }