diff --git a/src/osgDB/InputStream.cpp b/src/osgDB/InputStream.cpp index 816de6a96..cb6b5c62f 100644 --- a/src/osgDB/InputStream.cpp +++ b/src/osgDB/InputStream.cpp @@ -797,6 +797,7 @@ osg::Image* InputStream::readImage(bool readFromExternal) // we don't want to overwrite the properties of the image in the cache as this could cause theading problems if the object is currently being used // so we read the properties from the file into a dummy object and discard the changes. osg::ref_ptr temp_obj = readObjectFields("osg::Object", id, _dummyReadObject.get() ); + _identifierMap[id] = image; } else {