Merge pull request #1787 from jamesu/swizzle_fix

Fix redundant memcpy in swizzle ToBuffer method
This commit is contained in:
Anis 2016-10-08 19:04:41 +02:00 committed by GitHub
commit dd13288711

View file

@ -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]];