Fix inability to set TextureLayeredRD as TEXTURE_TYPE_CUBE or TEXTURE_TYPE_CUBE_ARRAY
This commit is contained in:
parent
0f5f3bc954
commit
a4d1d36c85
2 changed files with 4 additions and 2 deletions
|
|
@ -1666,7 +1666,9 @@ void TextureStorage::texture_rd_initialize(RID p_texture, const RID &p_rd_textur
|
|||
ERR_FAIL_COND(tf.array_layers != 1);
|
||||
texture.type = TextureStorage::TYPE_2D;
|
||||
} break;
|
||||
case RD::TEXTURE_TYPE_2D_ARRAY: {
|
||||
case RD::TEXTURE_TYPE_2D_ARRAY:
|
||||
case RD::TEXTURE_TYPE_CUBE:
|
||||
case RD::TEXTURE_TYPE_CUBE_ARRAY: {
|
||||
// RenderingDevice doesn't distinguish between Array textures and Cube textures
|
||||
// this condition covers TextureArrays, TextureCube, and TextureCubeArray.
|
||||
ERR_FAIL_COND(tf.array_layers == 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue