From 15b4e9bb9f3c0d947b48b26b1d0da22e8d79f3fc Mon Sep 17 00:00:00 2001 From: Li Yanxu Date: Wed, 15 Jan 2025 22:46:23 +0800 Subject: [PATCH] fix: draco compilation error for latest gcc version --- src/gltf/properties/PrimitiveData.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gltf/properties/PrimitiveData.hpp b/src/gltf/properties/PrimitiveData.hpp index 1ff401b..1419317 100644 --- a/src/gltf/properties/PrimitiveData.hpp +++ b/src/gltf/properties/PrimitiveData.hpp @@ -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);