Browse Source

Fix redundant memcpy in swizzle ToBuffer method

James Urquhart 9 years ago
parent
commit
d324abd2df
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Engine/source/core/util/swizzle.h

+ 0 - 2
Engine/source/core/util/swizzle.h

@@ -127,8 +127,6 @@ inline void Swizzle<T, mapLength>::ToBuffer( void *destination, const void *sour
 
 
    for( S32 i = 0; i < size / ( mapLength * sizeof( T ) ); i++ )
    for( S32 i = 0; i < size / ( mapLength * sizeof( T ) ); i++ )
    {
    {
-      dMemcpy( dest, src, mapLength * sizeof( T ) );
-
       for( S32 j = 0; j < mapLength; j++ )
       for( S32 j = 0; j < mapLength; j++ )
          *dest++ = src[mMap[j]];
          *dest++ = src[mMap[j]];