mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-06-08 10:53:46 +00:00
Fixed image size calculation.
This commit is contained in:
@@ -288,7 +288,7 @@ namespace bimg
|
||||
height = bx::uint32_max(blockHeight * minBlockY, ( (height + blockHeight - 1) / blockHeight)*blockHeight);
|
||||
depth = bx::uint32_max(1, depth);
|
||||
|
||||
size += width*height*depth*bpp/8 * sides;
|
||||
size += uint32_t(uint64_t(width*height*depth)*bpp/8 * sides);
|
||||
|
||||
width >>= 1;
|
||||
height >>= 1;
|
||||
|
||||
Reference in New Issue
Block a user