diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index c7c9b60da..6c59aa794 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -1223,6 +1223,8 @@ ReaderWriter::ReadResult Registry::read(const ReadFunctor& readFunctor) ReaderWriter* rw = getReaderWriterForExtension("net"); if (rw) { + std::string& filename = const_cast(readFunctor._filename); + filename = serverName+':'+serverFile; return readFunctor.doRead(*rw); } else