Added thread safe ref/unref by default.

This commit is contained in:
Robert Osfield
2007-08-22 12:14:15 +00:00
parent e043b0339b
commit 4f97cdca96
2 changed files with 4 additions and 0 deletions

View File

@@ -199,6 +199,9 @@ public:
{ {
public: public:
FontImplementation():
osg::Referenced(true) {}
virtual std::string getFileName() const = 0; virtual std::string getFileName() const = 0;
/** Set the pixel width and height hint.*/ /** Set the pixel width and height hint.*/

View File

@@ -139,6 +139,7 @@ osgText::Font* osgText::readFontStream(std::istream& stream, const osgDB::Reader
Font::Font(FontImplementation* implementation): Font::Font(FontImplementation* implementation):
osg::Object(true),
_width(16), _width(16),
_height(16), _height(16),
_margin(1), _margin(1),