diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2024-01-22 20:55:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 20:55:07 +0100 |
commit | 8649a800715a51e04301ec4680e3f5d341aa6d59 (patch) | |
tree | 2de78d3f4697fc417f75e0cd61cfb140513604ef /src | |
parent | Merge pull request #12579 from FernandoS27/smmu (diff) | |
parent | device_memory_manager: fix ScratchBuffer indexing (diff) | |
download | yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.tar yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.tar.gz yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.tar.bz2 yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.tar.lz yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.tar.xz yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.tar.zst yuzu-8649a800715a51e04301ec4680e3f5d341aa6d59.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; |