Mac OS support (#1346)

This commit is contained in:
Turánszki János
2026-01-11 21:53:46 +01:00
committed by GitHub
parent d2595b87ac
commit 3899e472b6
253 changed files with 158193 additions and 405 deletions
+1 -1
View File
@@ -1055,7 +1055,7 @@ void ImportModel_GLTF(const std::string& fileName, Scene& scene)
const tinygltf::Buffer& buffer = state.gltfModel.buffers[bufferView.buffer];
int stride = accessor.ByteStride(bufferView);
size_t indexCount = AlignTo(accessor.count, size_t(3)); // there was a model with invalid index count, this is a safety fix for it
size_t indexCount = align(accessor.count, size_t(3)); // there was a model with invalid index count, this is a safety fix for it
size_t indexOffset = mesh.indices.size();
mesh.indices.resize(indexOffset + indexCount);
mesh.subsets.back().indexOffset = (uint32_t)indexOffset;