diff options
author | Liam <byteslice@airmail.cc> | 2024-01-22 20:07:33 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-22 20:07:33 +0100 |
commit | 550cadbee47fc31acfff08e805403d214e2d05ce (patch) | |
tree | 2de78d3f4697fc417f75e0cd61cfb140513604ef | |
parent | Merge pull request #12579 from FernandoS27/smmu (diff) | |
download | yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.tar yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.tar.gz yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.tar.bz2 yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.tar.lz yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.tar.xz yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.tar.zst yuzu-550cadbee47fc31acfff08e805403d214e2d05ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/device_memory_manager.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/device_memory_manager.inc b/src/core/device_memory_manager.inc index 8ce122872..eab8a2731 100644 --- a/src/core/device_memory_manager.inc +++ b/src/core/device_memory_manager.inc @@ -31,9 +31,8 @@ public: buffer.resize(0); size_t index = 0; const auto add_value = [&](u32 value) { - buffer[index] = value; - index++; - buffer.resize(index); + buffer.resize(index + 1); + buffer[index++] = value; }; u32 iter_entry = start_entry; |