From 2ed98b56c90724ef56c31dccea1db30c52a0c57b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 30 Sep 2006 14:10:15 +0000 Subject: [PATCH] Added subclassing from osg::Referenced to allow the SimpleViewer to be safely managed on the heap. --- include/osgGA/SimpleViewer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgGA/SimpleViewer b/include/osgGA/SimpleViewer index b8d3253f9..33a6dede8 100644 --- a/include/osgGA/SimpleViewer +++ b/include/osgGA/SimpleViewer @@ -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: