You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
DDS: Fix loading cubemaps
This commit is contained in:
@@ -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]);
|
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>());
|
ERR_FAIL_COND_V(p_layer_count % 6 != 0, Ref<Resource>());
|
||||||
|
|
||||||
if (p_dds_type & DDST_ARRAY) {
|
if (p_dds_type & DDST_ARRAY) {
|
||||||
|
|||||||
Reference in New Issue
Block a user