Index: OpenSceneGraph/trunk/examples/osgthreadedterrain/osgthreadedterrain.cpp
===================================================================
--- OpenSceneGraph/trunk/examples/osgthreadedterrain/osgthreadedterrain.cpp (revision 12292)
+++ OpenSceneGraph/trunk/examples/osgthreadedterrain/osgthreadedterrain.cpp (revision 12597)
@@ -667,5 +667,4 @@
     osg::Texture::FilterMode filter = osg::Texture::LINEAR;
 
-    bool readParameter = false;
     float minValue, maxValue;
     float scale = 1.0f;
@@ -675,5 +674,4 @@
     while(pos<arguments.argc())
     {
-        readParameter = false;
         std::string filename;
         
@@ -681,5 +679,4 @@
         {
             osg::notify(osg::NOTICE)<<"Set layer number to "<<layerNum<<std::endl;
-            readParameter = true;
         }
 
@@ -694,5 +691,4 @@
             locator->setCoordinateSystemType(osgTerrain::Locator::GEOCENTRIC);
             locator->setTransformAsExtents(x,y,x+w,y+h);
-            readParameter = true;
         }
 
@@ -700,5 +696,4 @@
         {
             // define the extents.
-            readParameter = true;
         }
 
@@ -712,6 +707,4 @@
         else if (arguments.read(pos, "--hf",filename))
         {
-            readParameter = true;
-            
             osg::notify(osg::NOTICE)<<"--hf "<<filename<<std::endl;
 
@@ -749,5 +742,4 @@
         else if (arguments.read(pos, "-d",filename) || arguments.read(pos, "--elevation-image",filename))
         {
-            readParameter = true;
             osg::notify(osg::NOTICE)<<"--elevation-image "<<filename<<std::endl;
 
@@ -784,5 +776,4 @@
         else if (arguments.read(pos, "-c",filename) || arguments.read(pos, "--image",filename))
         {
-            readParameter = true;
             osg::notify(osg::NOTICE)<<"--image "<<filename<<" x="<<x<<" y="<<y<<" w="<<w<<" h="<<h<<std::endl;
 
@@ -819,6 +810,4 @@
         else if (arguments.read(pos, "--filter",filterName))
         {
-            readParameter = true;
-            
             if (filterName=="NEAREST")
             {
@@ -845,6 +834,4 @@
         else if (arguments.read(pos, "--tf",minValue, maxValue))
         {
-            readParameter = true;
-
             osg::ref_ptr<osg::TransferFunction1D> tf = new osg::TransferFunction1D;
             
