diff --git a/include/osg/Program b/include/osg/Program index a6e2abc94..409d29a50 100644 --- a/include/osg/Program +++ b/include/osg/Program @@ -188,7 +188,7 @@ class OSG_EXPORT Program : public osg::StateAttribute if (location>=0) { if ((unsigned int)location>=_lastAppliedUniformList.size()) _lastAppliedUniformList.resize(location+1); - const Uniform* lastAppliedUniform = _lastAppliedUniformList[location].first; + const Uniform* lastAppliedUniform = _lastAppliedUniformList[location].first.get(); if (lastAppliedUniform != &uniform) { // new attribute @@ -241,7 +241,7 @@ class OSG_EXPORT Program : public osg::StateAttribute ActiveVarInfoMap _uniformInfoMap; ActiveVarInfoMap _attribInfoMap; - typedef std::pair UniformModifiedCountPair; + typedef std::pair, unsigned int> UniformModifiedCountPair; typedef std::vector LastAppliedUniformList; mutable LastAppliedUniformList _lastAppliedUniformList;