Hi Lonni, Both were fixed in 2012 by replacing false with NULL. Regards, Laurens.
Revision: 5743d30dc1614ce4ee809cbc96d1b09c3778c4c2 Author: Robert Osfield <[email protected]> Date: 2/9/2012 4:54:13 PM Message: >From Olaf Flebbe, "there are two ocurrences where pointer to bool is mixed with bool. Fixes warnings on MacOSX with llvm. diff --git a/src/osg/State.cpp b/src/osg/State.cpp index 0b88d63..2137bbd 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -109,7 +109,7 @@ State::State(): } } - _abortRenderingPtr = false; + _abortRenderingPtr = NULL; _checkGLErrors = ONCE_PER_FRAME; @@ -689,7 +689,7 @@ bool State::getLastAppliedTextureMode(unsigned int unit,Stat const StateAttribute* State::getLastAppliedTextureAttribute(unsigned int unit,S { - if (unit>=_textureAttributeMapList.size()) return false; + if (unit>=_textureAttributeMapList.size()) return NULL; return getLastAppliedAttribute(_textureAttributeMapList[unit],type,member); } " ---- Modified: src/osg/State.cpp On Wed, Sep 26, 2018 at 10:59 PM <[email protected]> wrote: > Hello, I am trying to upgrade some image generators and found that we can > no longer compile our code. In fact I cannot compile OSG 3.0.1 anymore. > Here is the error I getting: > > > > /data/oldproject/OpenSceneGraph/src/osg/State.cpp: In constructor ‘ > osg::State::State()’: > /data/oldproject/OpenSceneGraph/src/osg/State.cpp:112:26: error: cannot > convert ‘bool’ to ‘bool*’ in assignment > _abortRenderingPtr = false; > ^~~~~ > /data/oldproject/OpenSceneGraph/src/osg/State.cpp: In member function ‘const > osg::StateAttribute* osg::State::getLastAppliedTextureAttribute(unsigned > int, osg::StateAttribute::Type, unsigned int) const’: > /data/oldproject/OpenSceneGraph/src/osg/State.cpp:692:55: error: cannot > convert ‘bool’ to ‘const osg::StateAttribute*’ in return > if (unit>=_textureAttributeMapList.size()) return false; > ^~~~~ > src/osg/CMakeFiles/osg.dir/build.make:2702: recipe for target > 'src/osg/CMakeFiles/osg.dir/State.o' failed > make[2]: *** [src/osg/CMakeFiles/osg.dir/State.o] Error 1 > CMakeFiles/Makefile2:300: recipe for target > 'src/osg/CMakeFiles/osg.dir/all' failed > make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 > Makefile:129: recipe for target 'all' failed > make: *** [all] Error 2 > > > We made an effort to upgrade our software to use the latest and greatest > OSG but failed because of some low level code issues which we just don't > understand. We plan to do a tech refresh. This is just a band aid to keep > things usable. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

