PagingLandScapeTile::_Notify bug?

Sarev0k

12-02-2006 05:37:06

Maybe I'm wrong but it looks like your calling unload() at the wrong time, calling it before the unqueueRenderable instead of after like you do just a little below the indicated line. This is causing an assert error for me, but if I change the order it seems to work just fine.


if (((pos - mWorldPosition).squaredLength() <
PagingLandScapeOptions::getSingleton().renderable_factor))
{
if (Cam->getVisibility (mWorldBoundsExt))
{
if (!mLoaded)
load();
else
mRenderable->setInUse (true);
touch ();
}
else if (mLoaded && touched ())
{
unload(); //shouldn't this be after the unqueueRenderable?
PagingLandScapeRenderableManager::getSingleton().unqueueRenderable (this);
}
}
else
{
if (mLoaded)
{
PagingLandScapeRenderableManager::getSingleton().unqueueRenderable (this);
unload();
}
}


Any thoughts?

tuan kuranes

12-02-2006 07:49:02

CVS is fixed...
I'll update SDK asap.