From f816436771082385098b7bba68bbe0e2b38a2abe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Feb 2017 12:41:45 +0000 Subject: [PATCH] Removed the unncessary array. --- include/osgText/Text | 2 +- src/osgText/Text.cpp | 37 ++++++++++++------------------------- 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/include/osgText/Text b/include/osgText/Text index aaebbd2b8..ef4f2a940 100644 --- a/include/osgText/Text +++ b/include/osgText/Text @@ -314,7 +314,7 @@ public: Coords _coords; #ifdef NEW_APPROACH - Coords3 _transformedCoords; +// Coords3 _transformedCoords; #else osg::buffered_object _transformedCoords; #endif diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 893bd9f95..1680d0776 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -835,6 +835,7 @@ void Text::computePositions(unsigned int contextID) const } #endif +#ifndef NEW_APPROACH // now apply matrix to the glyphs. for(TextureGlyphQuadMap::iterator titr=_textureGlyphQuadMap.begin(); titr!=_textureGlyphQuadMap.end(); @@ -844,17 +845,12 @@ void Text::computePositions(unsigned int contextID) const //OSG_NOTICE<<"Text::computePositions("<