two warning fixes

This commit is contained in:
Torsten Dreyer
2010-08-12 11:42:04 +02:00
parent 7f8efa7cef
commit 1f6555c9ad
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -88,7 +88,7 @@ public:
{ return T::count(_ptr); }
bool valid(void) const
{ return _ptr; }
{ return _ptr != NULL; }
void clear()
{ put(); }