Explorar el Código

Fix redundant memcpy in swizzle ToBuffer method

James Urquhart hace 9 años
padre
commit
d324abd2df
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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++ )
    {
-      dMemcpy( dest, src, mapLength * sizeof( T ) );
-
       for( S32 j = 0; j < mapLength; j++ )
          *dest++ = src[mMap[j]];