From ed976861df745aff94ec7f5226a6c09a337ce056 Mon Sep 17 00:00:00 2001 From: brunojezek Date: Tue, 29 Aug 2023 17:57:42 +0200 Subject: [PATCH] Small fix: replace transform to memcpy --- filament/src/details/SkinningBuffer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/filament/src/details/SkinningBuffer.cpp b/filament/src/details/SkinningBuffer.cpp index 5769c756cfa1..2600cf4351cf 100644 --- a/filament/src/details/SkinningBuffer.cpp +++ b/filament/src/details/SkinningBuffer.cpp @@ -194,8 +194,7 @@ void updateDataAt(backend::DriverApi& driver, size_t elementSize = sizeof(float2); size_t size = getSkinningBufferSize(count); auto* out = (float2*) malloc(size); - std::transform(pairs.begin(), pairs.begin() + count, out, - [](const float2& p) { return float2(p); }); + std::memcpy(out, pairs.begin(), size); size_t const textureWidth = getSkinningBufferWidth( count); size_t const lineCount = count / textureWidth;