two warning fixes
This commit is contained in:
@@ -39,7 +39,7 @@ StateAttributeFactory::StateAttributeFactory()
|
||||
{
|
||||
_standardAlphaFunc = new AlphaFunc;
|
||||
_standardAlphaFunc->setFunction(osg::AlphaFunc::GREATER);
|
||||
_standardAlphaFunc->setReferenceValue(0.01);
|
||||
_standardAlphaFunc->setReferenceValue(0.01f);
|
||||
_standardAlphaFunc->setDataVariance(Object::STATIC);
|
||||
_smooth = new ShadeModel;
|
||||
_smooth->setMode(ShadeModel::SMOOTH);
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
{ return T::count(_ptr); }
|
||||
|
||||
bool valid(void) const
|
||||
{ return _ptr; }
|
||||
{ return _ptr != NULL; }
|
||||
|
||||
void clear()
|
||||
{ put(); }
|
||||
|
||||
Reference in New Issue
Block a user