Warning fixes for Clang-3.6
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15016 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -893,7 +893,8 @@ struct ActivateTransparencyOnType
|
||||
|
||||
void operator()(osg::ref_ptr<osg::Node>& nptr) const
|
||||
{
|
||||
if(typeid(*nptr)==_t)
|
||||
const osg::Node* ptr = nptr.get();
|
||||
if(typeid(*ptr)==_t)
|
||||
{
|
||||
osg::Drawable* drawable = nptr->asDrawable();
|
||||
osg::StateSet* ss = drawable->getOrCreateStateSet();
|
||||
@@ -919,7 +920,8 @@ struct DeactivateTransparencyOnType
|
||||
|
||||
void operator()(osg::ref_ptr<osg::Node>& nptr) const
|
||||
{
|
||||
if(typeid(*nptr)==_t)
|
||||
const osg::Node* ptr = nptr.get();
|
||||
if(typeid(*ptr)==_t)
|
||||
{
|
||||
osg::Drawable* drawable = nptr->asDrawable();
|
||||
osg::StateSet* ss = drawable->getOrCreateStateSet();
|
||||
|
||||
Reference in New Issue
Block a user