From 7826e58909f0a31dcb9621f6f67ca030a346a290 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Fri, 13 Mar 2020 08:54:54 +0100 Subject: [PATCH] Add missing handling of unions in readExtensionRequireType. --- VulkanHppGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 56f4fca..49be868 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -4647,6 +4647,7 @@ void VulkanHppGenerator::readExtensionRequireType(tinyxml2::XMLElement const* el } break; case TypeCategory::Struct: + case TypeCategory::Union: // unions are listed together with the structures! { auto structIt = m_structures.find(name); check(structIt != m_structures.end(), line, "failed to find required struct <" + name + ">");