mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Fix redundant memcpy in swizzle ToBuffer method
This commit is contained in:
parent
57dfeb829a
commit
d324abd2df
1 changed files with 0 additions and 2 deletions
|
|
@ -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]];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue