need to use sizeof(TransformType), not sizeof(mat4)

This commit is contained in:
Anthony J. Thibault 2018-01-04 16:37:12 -08:00
parent b8c88fca3b
commit fac0982c67

View file

@ -377,7 +377,7 @@ void ModelMeshPartPayload::updateClusterBuffer(const std::vector<TransformType>&
(const gpu::Byte*) clusterTransforms.data());
}
else {
_clusterBuffer->setSubData(0, clusterTransforms.size() * sizeof(glm::mat4),
_clusterBuffer->setSubData(0, clusterTransforms.size() * sizeof(TransformType),
(const gpu::Byte*) clusterTransforms.data());
}
}