diff --git a/src/osgText/FadeText.cpp b/src/osgText/FadeText.cpp index 4b4842085..d572324c8 100644 --- a/src/osgText/FadeText.cpp +++ b/src/osgText/FadeText.cpp @@ -395,10 +395,15 @@ void FadeText::drawImplementation(osg::RenderInfo& renderInfo) const +#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()) {