summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2024-01-22 20:55:07 +0100
committerGitHub <noreply@github.com>2024-01-22 20:55:07 +0100
commit8649a800715a51e04301ec4680e3f5d341aa6d59 (patch)
tree2de78d3f4697fc417f75e0cd61cfb140513604ef /src/core
parentMerge pull request #12579 from FernandoS27/smmu (diff)
parentdevice_memory_manager: fix ScratchBuffer indexing (diff)
downloadyuzu-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 'src/core')
-rw-r--r--src/core/device_memory_manager.inc5
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;