osg::Program::isFixedFunction() should'nt return true fixed function is unavailable, even if _shaderList.empty() is true

This commit is contained in:
Mathieu MARACHE
2017-08-28 09:44:10 +02:00
parent cf06256997
commit 1408c2664e

View File

@@ -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
}