[util] Set m_size in small_vector::resize

Turns out this has been broken since it was added, meaning
isViewCompatible has always returned false putting us down slow paths
for UAV clears + copies for the past two years.
This commit is contained in:
Joshua Ashton 2022-08-02 22:21:26 +01:00 committed by Philip Rebohle
parent c1cb4d9d18
commit ac2d3e952d
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ namespace dxvk {
for (size_t i = m_size; i < n; i++)
new (ptr(i)) T();
m_size = n;
}
void push_back(const T& object) {