Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cgltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3991,6 +3991,8 @@ static cgltf_size cgltf_component_size(cgltf_component_type component_type) {
static cgltf_size cgltf_calc_size(cgltf_type type, cgltf_component_type component_type)
{
cgltf_size component_size = cgltf_component_size(component_type);
// Need to match alignments for corner cases
// https://github.com/jkuhlmann/cgltf/issues/47
if (type == cgltf_type_mat2 && component_size == 1)
{
return 8 * component_size;
Expand Down