diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 16a0d010b..85533b5b7 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -731,7 +731,7 @@ void Text::computePositions(unsigned int contextID) const osg::Matrix rotate_matrix; if (_autoRotateToScreen) { - osg::Vec3 trans(atc._modelview.getTrans()); + osg::Vec3d trans(atc._modelview.getTrans()); atc._modelview.setTrans(0.0f,0.0f,0.0f); rotate_matrix.invert(atc._modelview);