mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-08 03:03:50 +00:00
SerializeGltfImage: add missing & std::string ref
Hopefully the compiler would optimize this away but better to avoid the copy in the first place.
This commit is contained in:
@@ -7023,7 +7023,7 @@ static void SerializeGltfBufferView(const BufferView &bufferView, json &o) {
|
||||
}
|
||||
}
|
||||
|
||||
static void SerializeGltfImage(const Image &image, const std::string uri,
|
||||
static void SerializeGltfImage(const Image &image, const std::string &uri,
|
||||
json &o) {
|
||||
// From 2.7.0, we look for `uri` parameter, not `Image.uri`
|
||||
// if uri is empty, the mimeType and bufferview should be set
|
||||
|
||||
Reference in New Issue
Block a user