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:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user