diff options
author | qonnop <noreply@github.com> | 2018-10-03 17:03:19 +0200 |
---|---|---|
committer | qonnop <noreply@github.com> | 2018-10-03 17:11:14 +0200 |
commit | a93edeb3075ec78e4c77e7b141f475a0a185e4ef (patch) | |
tree | 58cccfa7dc8eeef7589a2e4d4d65afa552bdf865 /modules/dds | |
parent | 874e3b4a37f68d12341d172fe7c6076cce4de517 (diff) |
Fixed DDS loader according to issue #22530
width and height attributes have to be switched according to the
official DDS header docs:
https://docs.microsoft.com/en-us/windows/desktop/direct3ddds/dds-header
Diffstat (limited to 'modules/dds')
-rw-r--r-- | modules/dds/texture_loader_dds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dds/texture_loader_dds.cpp b/modules/dds/texture_loader_dds.cpp index ff15aaa735..53e9773791 100644 --- a/modules/dds/texture_loader_dds.cpp +++ b/modules/dds/texture_loader_dds.cpp @@ -108,8 +108,8 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path, uint32_t magic = f->get_32(); uint32_t hsize = f->get_32(); uint32_t flags = f->get_32(); - uint32_t width = f->get_32(); uint32_t height = f->get_32(); + uint32_t width = f->get_32(); uint32_t pitch = f->get_32(); /* uint32_t depth = */ f->get_32(); uint32_t mipmaps = f->get_32(); |