mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-08 07:21:51 +08:00
Build fix.
This commit is contained in:
parent
9e3d1f6db5
commit
a3d5d5d1c9
@ -7541,7 +7541,7 @@ static void WriteBinaryGltfStream(std::ostream &stream,
|
|||||||
// Chunk data must be located at 4-byte boundary, which may require padding
|
// Chunk data must be located at 4-byte boundary, which may require padding
|
||||||
const uint32_t length =
|
const uint32_t length =
|
||||||
12 + 8 + content_size + content_padding_size +
|
12 + 8 + content_size + content_padding_size +
|
||||||
(binBuffer_size ? (8 + binBuffer_size + bin_padding_size : 0);
|
(binBuffer_size ? (8 + binBuffer_size + bin_padding_size : 0));
|
||||||
|
|
||||||
stream.write(header.c_str(), std::streamsize(header.size()));
|
stream.write(header.c_str(), std::streamsize(header.size()));
|
||||||
stream.write(reinterpret_cast<const char *>(&version), sizeof(version));
|
stream.write(reinterpret_cast<const char *>(&version), sizeof(version));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user