yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

device_memory_manager: fix ScratchBuffer indexing

This commit is contained in:
Liam 2024-01-22 14:07:33 -05:00
parent 8bd10473d6
commit 550cadbee4
1 changed files with 2 additions and 3 deletions

View File

@ -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;