fix: draco compilation error for latest gcc version

This commit is contained in:
Li Yanxu 2025-01-15 22:46:23 +08:00
parent fb1f6b878c
commit 15b4e9bb9f
1 changed files with 1 additions and 3 deletions

View File

@ -41,12 +41,10 @@ struct PrimitiveData {
int8_t componentCount = attribute.glType.count;
att.Init(
attribute.dracoAttribute,
nullptr,
componentCount,
attribute.dracoComponentType,
false,
componentCount * draco::DataTypeLength(attribute.dracoComponentType),
0);
componentCount * draco::DataTypeLength(attribute.dracoComponentType));
const int dracoAttId = dracoMesh->AddAttribute(att, true, to_uint32(attribArr.size()));
draco::PointAttribute* attPtr = dracoMesh->attribute(dracoAttId);