mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
![]() Previously, the DDS texture loader incorrectly calculated mipmap dimensions for uncompressed textures when the original dimensions were non-power-of-two. For example, given a 120×120 texture, the expected mipmap chain should be: mipmap=0, size=120×120 mipmap=1, size=60×60 mipmap=2, size=30×30 mipmap=3, size=15×15 mipmap=4, size=7×7 mipmap=5, size=3×3 mipmap=6, size=1×1 But the loader was producing: mipmap=0, size=120×120 mipmap=1, size=60×60 mipmap=2, size=30×30 mipmap=3, size=15×15 mipmap=4, size=8×8 mipmap=5, size=4×4 mipmap=6, size=2×2 This commit corrects the logic to properly compute width and height independently at each mip level. Fixes issue #105136. |
||
---|---|---|
.. | ||
tests | ||
config.py | ||
dds_enums.h | ||
image_saver_dds.cpp | ||
image_saver_dds.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub | ||
texture_loader_dds.cpp | ||
texture_loader_dds.h |