Merge pull request #643 from ace13/win-build-fix

Fix build error and a pair of warnings
This commit is contained in:
scrawl 2015-07-05 22:24:24 +02:00
commit 49c07de773
2 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,7 @@
#include <osg/PositionAttitudeTransform> #include <osg/PositionAttitudeTransform>
#include <osg/TexEnvCombine> #include <osg/TexEnvCombine>
#include <osg/TexMat> #include <osg/TexMat>
#include <osg/Version>
#include <osgParticle/ParticleSystem> #include <osgParticle/ParticleSystem>
#include <osgParticle/ParticleSystemUpdater> #include <osgParticle/ParticleSystemUpdater>
@ -727,7 +728,11 @@ public:
if (stateset->getAttribute(osg::StateAttribute::MATERIAL)) if (stateset->getAttribute(osg::StateAttribute::MATERIAL))
{ {
SceneUtil::CompositeStateSetUpdater* composite = NULL; SceneUtil::CompositeStateSetUpdater* composite = NULL;
#if OSG_MIN_VERSION_REQUIRED(3,3,3)
osg::Callback* callback = node.getUpdateCallback();
#else
osg::NodeCallback* callback = node.getUpdateCallback(); osg::NodeCallback* callback = node.getUpdateCallback();
#endif
while (callback) while (callback)
{ {
if ((composite = dynamic_cast<SceneUtil::CompositeStateSetUpdater*>(callback))) if ((composite = dynamic_cast<SceneUtil::CompositeStateSetUpdater*>(callback)))

View file

@ -11,6 +11,7 @@ namespace SceneUtil
class ControllerSource class ControllerSource
{ {
public: public:
virtual ~ControllerSource() { }
virtual float getValue(osg::NodeVisitor* nv) = 0; virtual float getValue(osg::NodeVisitor* nv) = 0;
}; };