//-----------------------------------------------------------------------
void PagingLandScapeRenderableManager::clear()
{
  if (!mTilesLoadRenderableQueue.empty()) {
    PagingLandScapeTile *t = mTilesLoadRenderableQueue.pop();
    while (t) {
      t->uninit();
      t = mTilesLoadRenderableQueue.pop();
    }
    assert(mTilesLoadRenderableQueue.empty ());
  }
  // As Renderables change too much over maps (+- lit, normals, etc...)
  mRenderablePool.deletePool();
}
    //-----------------------------------------------------------------------
    void PagingLandScapeRenderableManager::clear()
    {

        if (!mTilesLoadQueue.empty ())
        {
            PagingLandScapeTile *t = mTilesLoadQueue.pop();
            while (t)
            {
                t->uninit ();
                t = mTilesLoadQueue.pop ();
            }
            mTilesLoadQueue.clear ();
        }


        // If renderables change over maps (+- lit, normals, etc...)
        std::for_each(mRenderables.begin (), 
                        mRenderables.end (),  
                        delete_object());
        mRenderables.clear();
        mQueue.clear();
    }