Fixed fade text memory consumption bug which was due to new RenderInfo being

created local to RenderStage and passed on to rendering code which populated
the RenderInfo UserData, but without the restoring the new UserData to the
main RenderInfo.  The local RenderInfo UserData is now passed back to the main
RenderInfo.
This commit is contained in:
Robert Osfield
2006-11-28 11:10:15 +00:00
parent ed4188cb96
commit 5e1c5cd556

View File

@@ -863,6 +863,12 @@ void RenderStage::draw(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
else
{
drawInner( useRenderInfo, previous, doCopyTexture);
if (useRenderInfo.getUserData() != renderInfo.getUserData())
{
renderInfo.setUserData(useRenderInfo.getUserData());
}
}