Added subclassing from osg::Referenced to allow the SimpleViewer to be safely managed on the heap.

This commit is contained in:
Robert Osfield
2006-09-30 14:10:15 +00:00
parent c173eb49bc
commit 2ed98b56c9

View File

@@ -25,7 +25,7 @@
namespace osgGA{
/** SimpleViewer provide a simple interface for setting up rendering of an scene graph, using a single camera view within a single window.*/
class OSGGA_EXPORT SimpleViewer : public osgGA::GUIActionAdapter
class OSGGA_EXPORT SimpleViewer : public osgGA::GUIActionAdapter, public osg::Referenced
{
public: