mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 12:42:35 +01:00
Removed alignment macros, and added functions instead.
This commit is contained in:
@@ -3220,7 +3220,7 @@ namespace bimg
|
||||
const uint8_t numMips = _hasMips ? imageGetNumMips(_format, _width, _height, _depth) : 1;
|
||||
uint32_t size = imageGetSize(NULL, _width, _height, _depth, _cubeMap, _hasMips, _numLayers, _format);
|
||||
|
||||
ImageContainer* imageContainer = (ImageContainer*)BX_ALIGNED_ALLOC(_allocator, size + BX_ALIGN_16(sizeof(ImageContainer) ), 16);
|
||||
ImageContainer* imageContainer = (ImageContainer*)BX_ALIGNED_ALLOC(_allocator, size + bx::alignUp(sizeof(ImageContainer), 16), 16);
|
||||
|
||||
imageContainer->m_allocator = _allocator;
|
||||
imageContainer->m_data = bx::alignPtr(imageContainer + 1, 0, 16);
|
||||
|
||||
Reference in New Issue
Block a user