From d6a9738739b2be9abb3afe51cda36aee33b6ff1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Thu, 26 Jun 2025 13:39:05 +0200 Subject: [PATCH] Correct check on exported command. (#2199) --- VulkanHppGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 8801b47..aef3972 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -14747,7 +14747,7 @@ void VulkanHppGenerator::readFeatureRequire( tinyxml2::XMLElement const * elemen checkForError( commandIt != m_commands.end(), requireData.commands.back().xmlLine, "feature <" + featureData.name + "> requires unknown command <" + requireData.commands.back().name + ">" ); - checkForError( ( 319 <= std::stoi( m_version ) ) && !commandIt->second.exports.empty(), + checkForError( ( std::stoi( m_version ) < 319 ) || !commandIt->second.exports.empty(), commandIt->second.xmlLine, "command <" + commandIt->first + "> is required by feature <" + featureData.name + "> but is not marked as exported" ); checkForError( std::ranges::includes( featureData.api, commandIt->second.exports ),