vulkan: fix validation error when creating a non-square array texture.

This commit is contained in:
Sasha Szpakowski
2024-05-05 09:40:28 -03:00
parent 03f364e131
commit 9473c8d710
+1 -1
View File
@@ -112,7 +112,7 @@ bool Texture::loadVolatile()
}
}
if (texType == TEXTURE_CUBE || (texType == TEXTURE_2D_ARRAY && layerCount >= 6))
if (texType == TEXTURE_CUBE || (texType == TEXTURE_2D_ARRAY && layerCount >= 6 && pixelWidth == pixelHeight))
createFlags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
msaaSamples = vgfx->getMsaaCount(requestedMSAA);