Added subclassing from osg::Referenced to allow the SimpleViewer to be safely managed on the heap.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user