Merge pull request #22683 from qonnop/fix-dds-w-h-attribs

Fixed DDS loader width/height attribs, fixes #22530
This commit is contained in:
Rémi Verschelde 2018-10-03 18:19:11 +02:00 committed by GitHub
commit 0fa25206d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();