Made the more of the OSG's referenced object desctructors protected to ensure
that they arn't created on the stack inappropriately. Split the implemention of Matrix up so that it is a simple no referenced counted class and can be safefly created on the stack. To support referenced counting a seperate subclass now exists, this is RefMatrix which inherits from both Matrix and Object.
This commit is contained in:
@@ -38,9 +38,6 @@ class SG_EXPORT DisplaySettings : public osg::Referenced
|
||||
|
||||
DisplaySettings(const DisplaySettings& vs);
|
||||
|
||||
virtual ~DisplaySettings();
|
||||
|
||||
|
||||
|
||||
DisplaySettings& operator = (const DisplaySettings& vs);
|
||||
|
||||
@@ -135,6 +132,8 @@ class SG_EXPORT DisplaySettings : public osg::Referenced
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~DisplaySettings();
|
||||
|
||||
void copy(const DisplaySettings& vs);
|
||||
|
||||
bool _stereo;
|
||||
|
||||
Reference in New Issue
Block a user