diff options
Diffstat (limited to 'indra/newview/llgltfmateriallist.cpp')
| -rw-r--r-- | indra/newview/llgltfmateriallist.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llgltfmateriallist.cpp b/indra/newview/llgltfmateriallist.cpp index d8b3f996aa..8da835ed7d 100644 --- a/indra/newview/llgltfmateriallist.cpp +++ b/indra/newview/llgltfmateriallist.cpp @@ -45,7 +45,9 @@  #include "llworld.h"  #include "tinygltf/tiny_gltf.h" -#include <strstream> + +#include <boost/iostreams/device/array.hpp> +#include <boost/iostreams/stream.hpp>  #include <unordered_set> @@ -555,8 +557,7 @@ void LLGLTFMaterialList::onAssetLoadComplete(const LLUUID& id, LLAssetType::ETyp                  LLSD asset;                  // read file into buffer -                std::istrstream str(&buffer[0], static_cast<S32>(buffer.size())); - +                boost::iostreams::stream<boost::iostreams::array_source> str(buffer.data(), buffer.size());                  if (LLSDSerialize::deserialize(asset, str, buffer.size()))                  {                      if (asset.has("version") && LLGLTFMaterial::isAcceptedVersion(asset["version"].asString()))  | 
