fix: draco compilation error for latest gcc version
This commit is contained in:
parent
fb1f6b878c
commit
15b4e9bb9f
|
@ -41,12 +41,10 @@ struct PrimitiveData {
|
||||||
int8_t componentCount = attribute.glType.count;
|
int8_t componentCount = attribute.glType.count;
|
||||||
att.Init(
|
att.Init(
|
||||||
attribute.dracoAttribute,
|
attribute.dracoAttribute,
|
||||||
nullptr,
|
|
||||||
componentCount,
|
componentCount,
|
||||||
attribute.dracoComponentType,
|
attribute.dracoComponentType,
|
||||||
false,
|
false,
|
||||||
componentCount * draco::DataTypeLength(attribute.dracoComponentType),
|
componentCount * draco::DataTypeLength(attribute.dracoComponentType));
|
||||||
0);
|
|
||||||
|
|
||||||
const int dracoAttId = dracoMesh->AddAttribute(att, true, to_uint32(attribArr.size()));
|
const int dracoAttId = dracoMesh->AddAttribute(att, true, to_uint32(attribArr.size()));
|
||||||
draco::PointAttribute* attPtr = dracoMesh->attribute(dracoAttId);
|
draco::PointAttribute* attPtr = dracoMesh->attribute(dracoAttId);
|
||||||
|
|
Loading…
Reference in New Issue