Hi Jannik, In theory the lazy state updating mechanism in osg::State should avoid calling osg::Program::apply(), so in you application it would seem that this is failing for some reason. I would rather characterise why this is failing at the osg::State level as we might need to do work there rather than in Program::apply(). Do you have a test case that illustrates this problem?
Robert. On 17 February 2016 at 14:38, Jannik Heller <[email protected]> wrote: > Hi Robert, > > Attached you will find a change to Program.cpp, I found that OSG will in > some cases redundantly call glUseProgram. I added a check against the last > applied program object to avoid this. With this check added my application > runs much faster. > > Thank you! > > Cheers, > Jannik > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=66318#66318 > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
