diff options
author | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-07-21 21:06:14 +0200 |
---|---|---|
committer | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-07-21 21:06:14 +0200 |
commit | 0ed45629fd825389504a512ca783c320a6ce3a5a (patch) | |
tree | 11277bbd42a3111b3a63024bd3c0a82cd80833d5 /modules/basis_universal | |
parent | e25f3c0d38d457b15a63720240736f564ce0501b (diff) | |
download | redot-engine-0ed45629fd825389504a512ca783c320a6ce3a5a.tar.gz |
Support 64-bit image sizes for VRAM compression
Diffstat (limited to 'modules/basis_universal')
-rw-r--r-- | modules/basis_universal/image_compress_basisu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/basis_universal/image_compress_basisu.cpp b/modules/basis_universal/image_compress_basisu.cpp index fc1f01ae50..8167fe8c73 100644 --- a/modules/basis_universal/image_compress_basisu.cpp +++ b/modules/basis_universal/image_compress_basisu.cpp @@ -307,7 +307,7 @@ Ref<Image> basis_universal_unpacker_ptr(const uint8_t *p_data, int p_size) { transcoder.get_image_level_info(src_ptr, src_size, basisu_level, 0, i); uint32_t mip_block_or_pixel_count = Image::is_format_compressed(image_format) ? basisu_level.m_total_blocks : basisu_level.m_orig_width * basisu_level.m_orig_height; - int ofs = Image::get_image_mipmap_offset(basisu_info.m_width, basisu_info.m_height, image_format, i); + int64_t ofs = Image::get_image_mipmap_offset(basisu_info.m_width, basisu_info.m_height, image_format, i); bool result = transcoder.transcode_image_level(src_ptr, src_size, 0, i, dst + ofs, mip_block_or_pixel_count, basisu_format); |