mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
vulkan: only set cubemap compatibility for array textures with >= 6 layers.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user