From 5d9337e6c23f062dc2f0035934a73c8dcc623eb7 Mon Sep 17 00:00:00 2001 From: Powei Feng Date: Fri, 16 Feb 2024 13:06:01 -0800 Subject: [PATCH] geometry: properly reference memcpy usage (#7576) --- libs/geometry/src/MikktspaceImpl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/geometry/src/MikktspaceImpl.cpp b/libs/geometry/src/MikktspaceImpl.cpp index f9f54c332c..19942ada3b 100644 --- a/libs/geometry/src/MikktspaceImpl.cpp +++ b/libs/geometry/src/MikktspaceImpl.cpp @@ -19,12 +19,13 @@ #include #include - #include #include #include +#include // memcpy + namespace filament::geometry { using namespace filament::math; @@ -98,7 +99,7 @@ void MikktspaceImpl::setTSpaceBasic(SMikkTSpaceContext const* context, float con cursor += 36; for (auto [attribArray, attribStride, attribSize]: wrapper->mInputAttribArrays) { uint8_t const* input = pointerAdd(attribArray, vertInd, attribStride); - std::memcpy(cursor, input, attribSize); + memcpy(cursor, input, attribSize); cursor += attribSize; } }