Added handling of the reading of field properties to a dummy object for cached images to avoid threading issues associated with reusing and modifying an active object.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14469 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-11-05 16:08:42 +00:00
parent 9cda04e51f
commit 7f592b7ad5
2 changed files with 42 additions and 5 deletions

View File

@@ -219,6 +219,9 @@ protected:
osg::ref_ptr<InputException> _exception;
osg::ref_ptr<const osgDB::Options> _options;
// object to used to read field properties that will be discarded.
osg::ref_ptr<osg::Object> _dummyReadObject;
// store here to avoid a new and a leak in InputStream::decompress
std::stringstream* _dataDecompress;
};