From d324abd2dfed2f16e8d322d90b1ad2ef7b7aa5a5 Mon Sep 17 00:00:00 2001 From: James Urquhart Date: Fri, 30 Sep 2016 18:41:10 +0100 Subject: [PATCH] Fix redundant memcpy in swizzle ToBuffer method --- Engine/source/core/util/swizzle.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Engine/source/core/util/swizzle.h b/Engine/source/core/util/swizzle.h index 0f1d583f6..7ca77118e 100644 --- a/Engine/source/core/util/swizzle.h +++ b/Engine/source/core/util/swizzle.h @@ -127,8 +127,6 @@ inline void Swizzle::ToBuffer( void *destination, const void *sour for( S32 i = 0; i < size / ( mapLength * sizeof( T ) ); i++ ) { - dMemcpy( dest, src, mapLength * sizeof( T ) ); - for( S32 j = 0; j < mapLength; j++ ) *dest++ = src[mMap[j]];