Build fixes for when OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION is disabled

This commit is contained in:
Robert Osfield
2010-09-17 13:33:09 +00:00
parent b0db0382f5
commit 4daad70d17
5 changed files with 10 additions and 9 deletions

View File

@@ -111,7 +111,8 @@ void Text3D::setFont(Font* font)
void Text3D::setFont(const std::string & fontfile)
{
setFont(readRefFontFile(fontfile));
osg::ref_ptr<Font> font = readRefFontFile(fontfile);
setFont(font.get());
}
String::iterator Text3D::computeLastCharacterOnLine(osg::Vec2& cursor, String::iterator first,String::iterator last)