Removed the old code paths

This commit is contained in:
Robert Osfield
2017-02-22 14:14:03 +00:00
parent f816436771
commit 7b3ecefcfc
4 changed files with 5 additions and 439 deletions

View File

@@ -393,17 +393,9 @@ void FadeText::drawImplementation(osg::RenderInfo& renderInfo) const
userData->_fadeTextInView.clear();
}
#ifdef NEW_APPROACH
osg::Matrix lmv = state.getModelViewMatrix();
computeMatrix(state, lmv);
lmv.postMult(state.getModelViewMatrix());
#else
osgText::Text::AutoTransformCache& atc = _autoTransformCache[renderInfo.getContextID()];
osg::Matrix lmv = atc._matrix;
lmv.postMult(state.getModelViewMatrix());
#endif
if (renderInfo.getView() && renderInfo.getView()->getCamera())
{