From Colin McDonald and Robert Osfield, converted Traits::sharedContext from GraphicsContext* to osg:observer_ptr<GraphicsContext> to prevent dangling pointer issues.
This commit is contained in:
@@ -128,7 +128,7 @@ class OSG_EXPORT GraphicsContext : public Object
|
||||
bool getContextVersion(unsigned int& major, unsigned int& minor) const;
|
||||
|
||||
// shared context
|
||||
GraphicsContext* sharedContext;
|
||||
osg::observer_ptr<GraphicsContext> sharedContext;
|
||||
|
||||
osg::ref_ptr<osg::Referenced> inheritedWindowData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user