Fix usage of wrong command name when determining the skip count for that command (#1747)

This commit is contained in:
Andreas Süßenbach 2023-12-11 14:46:16 +01:00 committed by GitHub
parent e621db0771
commit 6b132a4628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1830,7 +1830,7 @@ size_t VulkanHppGenerator::determineInitialSkipCount( std::string const & comman
} }
auto handleIt = m_handles.find( commandIt->second.handle ); auto handleIt = m_handles.find( commandIt->second.handle );
assert( handleIt != m_handles.end() ); assert( handleIt != m_handles.end() );
if ( !handleIt->second.commands.contains( commandIt->first ) ) if ( !handleIt->second.commands.contains( command ) )
{ {
assert( 1 < commandIt->second.params.size() ); assert( 1 < commandIt->second.params.size() );
assert( m_handles.contains( commandIt->second.params[1].type.type ) ); assert( m_handles.contains( commandIt->second.params[1].type.type ) );