//-----------------------------------------------------------------------
    void PagingLandScapeTextureManager::load (  )
    {        

        if (mOptions->textureFormat != mTextureFormat)
        {
            reset ();
            mTextureFormat = mOptions->textureFormat; 
            uint i = 0;
            assert (!mTextureTypeMap.empty());
            const size_t numTextureTypes = mTextureTypeMap.size();
            for (; i != numTextureTypes; ++i)
            {
                const String &modeName = mTextureTypeMap[i]->getName ();
                if (modeName == mTextureFormat)
                {
                    mTextureType = i;
                    break;
                }
            }
            if (i == numTextureTypes)
            {
                OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS, 
                        "TextureMode not supplied or wrong (check case) !",
		                " PagingLandScapeTextureManager::load " );
            }
            if (!mTextureTypeMap[mTextureType]->TextureRenderCapabilitesFullfilled())
            {
                OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS, 
                        "TextureMode not supported by current hardware!  (shaders/num texture units...)",
		                " PagingLandScapeTextureManager::load " );
            }
            mTexturePageSize = mOptions->PageSize - 1;
        }

        // static member init. 
        mTextureTypeMap[mTextureType]->setPagesize();

        WorldDimensionChange();
    }
//-----------------------------------------------------------------------
void PagingLandScapePageManager::load()
{
  WorldDimensionChange();
  mEnabled = true;
}