mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
commit
908be4818f
112 changed files with 2645 additions and 680 deletions
|
|
@ -120,8 +120,7 @@ inline void Swizzle<T, mapLength>::ToBuffer( void *destination, const void *sour
|
|||
{
|
||||
// TODO: OpenMP?
|
||||
AssertFatal( size % ( sizeof( T ) * mapLength ) == 0, "Bad buffer size for swizzle, see docs." );
|
||||
AssertFatal( destination != NULL, "Swizzle::ToBuffer - got a NULL destination pointer!" );
|
||||
AssertFatal( source != NULL, "Swizzle::ToBuffer - got a NULL source pointer!" );
|
||||
if (!destination || !source) return;
|
||||
|
||||
T *dest = reinterpret_cast<T *>( destination );
|
||||
const T *src = reinterpret_cast<const T *>( source );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue