mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-02 11:05:13 +08: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:
parent
d2b0af6915
commit
a9121550b9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user