Skip to content

Commit

Permalink
vulkan: only set cubemap compatibility for array textures with >= 6 l…
Browse files Browse the repository at this point in the history
…ayers.
  • Loading branch information
slime73 committed Mar 9, 2024
1 parent 892411a commit b08f35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/vulkan/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b08f35d

Please sign in to comment.