mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
Fix VmaSmallVector::push_back
This commit is contained in:
parent
d00699f26d
commit
cf5e9899fb
1 changed files with 3 additions and 2 deletions
|
@ -4301,8 +4301,9 @@ VmaSmallVector<T, AllocatorT, N>::VmaSmallVector(size_t count, const AllocatorT&
|
|||
template<typename T, typename AllocatorT, size_t N>
|
||||
void VmaSmallVector<T, AllocatorT, N>::push_back(const T& src)
|
||||
{
|
||||
resize(m_Count + 1);
|
||||
data()[m_Count] = src;
|
||||
const size_t newIndex = size();
|
||||
resize(newIndex + 1);
|
||||
data()[newIndex] = src;
|
||||
}
|
||||
|
||||
template<typename T, typename AllocatorT, size_t N>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue