summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-22 20:07:33 +0100
committerLiam <byteslice@airmail.cc>2024-01-22 20:07:33 +0100
commit550cadbee47fc31acfff08e805403d214e2d05ce (patch)
tree2de78d3f4697fc417f75e0cd61cfb140513604ef
parentMerge pull request #12579 from FernandoS27/smmu (diff)
downloadyuzu-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
-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;