diff --git a/src/Demos/osgshadowtexture/CreateShadowedScene.cpp b/src/Demos/osgshadowtexture/CreateShadowedScene.cpp index ba7b91df7..b7c8b1413 100644 --- a/src/Demos/osgshadowtexture/CreateShadowedScene.cpp +++ b/src/Demos/osgshadowtexture/CreateShadowedScene.cpp @@ -244,7 +244,7 @@ void CreateShadowTextureCullCallback::doPreRender(osg::Node& node, osgUtil::Cull // set up a light source with the shadower and shodower subgraphs below it // with the appropriate callbacks set up. -osg::Group* createShadowedScene(osg::Node* shadower,osg::Node* shadowed,const osg::Vec3& lightPosition,float radius,unsigned int textureUnit=1) +osg::Group* createShadowedScene(osg::Node* shadower,osg::Node* shadowed,const osg::Vec3& lightPosition,float radius,unsigned int textureUnit) { osg::LightSource* lightgroup = new osg::LightSource; diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 50b3be28d..014290ebe 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -328,7 +328,7 @@ bool Geometry::removePrimitiveSet(unsigned int i, unsigned int numElementsToRemo // asking to delete too many elements, report a warning, and delete to // the end of the primitive list. notify(WARN)<<"Warning: osg::Geometry::removePrimitiveSet(i,numElementsToRemove) has been asked to remove more elements than are available,"<