Correct check on exported command. (#2199)

This commit is contained in:
Andreas Süßenbach 2025-06-26 13:39:05 +02:00 committed by GitHub
parent 4a6293e749
commit d6a9738739
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ),