mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Add an alternate allocator for DecalManager; Also fix SFX weirdness.
This commit is contained in:
parent
915fac31b3
commit
3781c7fae5
12 changed files with 146 additions and 185 deletions
|
|
@ -144,8 +144,8 @@ inline void Swizzle<T, mapLength>::InPlace( void *memory, const dsize_t size ) c
|
|||
// FrameTemp should work because the PNG loading code uses the FrameAllocator, so
|
||||
// it should only get used on an image w/ that size as max -patw
|
||||
FrameTemp<U8> buffer( size );
|
||||
dMemcpy( ~buffer, memory, size );
|
||||
ToBuffer( memory, ~buffer, size );
|
||||
dMemcpy( buffer.address(), memory, size);
|
||||
ToBuffer( memory, buffer.address(), size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue