Is the code doing what we want?

    // now apply all uniforms which are in the database
    for (osg::StateSet::UniformList::const_iterator it = mUniforms.begin();
it != mUniforms.end(); it++)
    {
        if (it->second.second & osg::StateAttribute::ON ==
osg::StateAttribute::ON)
            lastAppliedProgram->apply(*(it->second.first));
    }

we should use
if (* ( it->second.second & osg::StateAttribute::ON )* ==
osg::StateAttribute::ON)

or

if (it->second.second &* (osg::StateAttribute::ON ==
osg::StateAttribute::ON)* )

or
if (it->second.second *&& *osg::StateAttribute::ON ==
osg::StateAttribute::ON )


see @
f:\dev\OpenSceneGraph\osgPPU\src\osgPPU\ShaderAttribute.cpp at line 363


-- 
********************************************
Adrian Egli
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to