1
0
Fork 0

Merge pull request #107971 from BlueCube3310/dds-cube-fix

DDS: Fix loading cubemaps
This commit is contained in:
Thaddeus Crews 2025-06-25 15:14:00 -05:00
commit 17f3c6ce19
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ static Ref<Resource> _dds_create_texture(const Vector<Ref<Image>> &p_images, uin
return ImageTexture::create_from_image(p_images[0]);
}
} else if ((p_layer_count & DDST_TYPE_MASK) == DDST_CUBEMAP) {
} else if ((p_dds_type & DDST_TYPE_MASK) == DDST_CUBEMAP) {
ERR_FAIL_COND_V(p_layer_count % 6 != 0, Ref<Resource>());
if (p_dds_type & DDST_ARRAY) {