1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

DDS: Fix loading cubemaps

This commit is contained in:
BlueCube3310
2025-06-25 14:11:26 +02:00
parent 30456ba095
commit bac5e097d4

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) {