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:
Pyarelal Knowles 2022-12-29 14:12:29 -08:00
parent d2b0af6915
commit a9121550b9

View File

@ -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