diff --git a/src/Magnum/Vk/DescriptorPool.cpp b/src/Magnum/Vk/DescriptorPool.cpp index 2feeb1f75..aca95238e 100644 --- a/src/Magnum/Vk/DescriptorPool.cpp +++ b/src/Magnum/Vk/DescriptorPool.cpp @@ -40,7 +40,10 @@ namespace Magnum { namespace Vk { DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const UnsignedInt maxSets, const Containers::ArrayView> poolSizes, const Flags flags): _info{} { CORRADE_ASSERT(maxSets, "Vk::DescriptorPoolCreateInfo: there has to be at least one set", ); - CORRADE_ASSERT(poolSizes, + /* On certain compilers, {} (empty initializer list) gets converted to an + arrayview that's not null, interesting. Explicitly using .empty() to + ensure the assert gets properly fired. */ + CORRADE_ASSERT(!poolSizes.empty(), "Vk::DescriptorPoolCreateInfo: there has to be at least one pool", ); Containers::ArrayView poolSizesCopy;