From David Callu, "I found a bug in osg::Program.
From David Callu, "I found a bug in osg::Program.

in osg::Program::PerContextProgram :

typedef std::vector<UniformModifiedCountPair> LastAppliedUniformList;
should be
typedef std::map<unsigned int, UniformModifiedCountPair> LastAppliedUniformList;

Intel driver can use index uniform value > 200000.
With a std::vector, this index uniform value generate an out of memory error

Nothing in OpenGL or GLSL specification define index uniform value rules.
And all other implementation that deal with uniform index in osg::Program
use a std::map.
This fix could have a little performance impact but this is the cost
to pay to work with
all driver."


stmh/osg,stmh/osg,omega-hub/osg,koshman86/osg,XiaoCC/osg,koshman86/osg,ntoand/osg,ghub/osg,artoolkit/osg,ntoand/osg,XiaoCC/osg,omega-hub/osg,omega-hub/osg,artoolkit/osg,omega-hub/osg,koshman86/osg,stmh/osg,koshman86/osg,XiaoCC/osg,ntoand/osg,ghub/osg,ntoand/osg,XiaoCC/osg,stmh/osg,artoolkit/osg,stmh/osg,XiaoCC/osg,ghub/osg,ghub/osg,artoolkit/osg