From Marco Jez, Added an unregister of the GraphicsContextImplement on unload.
This commit is contained in:
@@ -34,6 +34,11 @@ namespace osgProducer
|
||||
{
|
||||
osg::GraphicsContext::setCreateGraphicsContextCallback(new MyCreateGraphicContexCallback);
|
||||
}
|
||||
|
||||
~RegisterCreateGraphicsContextCallbackProxy()
|
||||
{
|
||||
osg::GraphicsContext::setCreateGraphicsContextCallback(0);
|
||||
}
|
||||
};
|
||||
|
||||
RegisterCreateGraphicsContextCallbackProxy createGraphicsContextCallbackProxy;
|
||||
|
||||
Reference in New Issue
Block a user