From Marco Jez, Added an unregister of the GraphicsContextImplement on unload.

This commit is contained in:
Robert Osfield
2005-11-07 13:54:25 +00:00
parent a3f42b480c
commit b2f5a48c15

View File

@@ -34,6 +34,11 @@ namespace osgProducer
{
osg::GraphicsContext::setCreateGraphicsContextCallback(new MyCreateGraphicContexCallback);
}
~RegisterCreateGraphicsContextCallbackProxy()
{
osg::GraphicsContext::setCreateGraphicsContextCallback(0);
}
};
RegisterCreateGraphicsContextCallbackProxy createGraphicsContextCallbackProxy;