vulkan: only set cubemap compatibility for array textures with >= 6 layers.

This commit is contained in:
Sasha Szpakowski
2024-03-09 16:01:26 -04:00
parent 892411a737
commit b08f35d341
+1 -1
View File
@@ -112,7 +112,7 @@ bool Texture::loadVolatile()
}
}
if (texType == TEXTURE_CUBE || texType == TEXTURE_2D_ARRAY)
if (texType == TEXTURE_CUBE || (texType == TEXTURE_2D_ARRAY && layerCount >= 6))
createFlags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
msaaSamples = vgfx->getMsaaCount(requestedMSAA);