From 4f97cdca960efdee4ea54ef9d53ee1a98e594005 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Aug 2007 12:14:15 +0000 Subject: [PATCH] Added thread safe ref/unref by default. --- include/osgText/Font | 3 +++ src/osgText/Font.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/include/osgText/Font b/include/osgText/Font index ce299ab1f..c9a561b4d 100644 --- a/include/osgText/Font +++ b/include/osgText/Font @@ -199,6 +199,9 @@ public: { public: + FontImplementation(): + osg::Referenced(true) {} + virtual std::string getFileName() const = 0; /** Set the pixel width and height hint.*/ diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index f121cba75..edd5e9831 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -139,6 +139,7 @@ osgText::Font* osgText::readFontStream(std::istream& stream, const osgDB::Reader Font::Font(FontImplementation* implementation): + osg::Object(true), _width(16), _height(16), _margin(1),