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

Merge pull request #12753 from liamwhite/why

device_memory_manager: fix ScratchBuffer indexing
This commit is contained in:
Charles Lombardo 2024-01-22 14:55:07 -05:00 committed by GitHub
commit 8649a80071
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -31,9 +31,8 @@ public:
buffer.resize(0); buffer.resize(0);
size_t index = 0; size_t index = 0;
const auto add_value = [&](u32 value) { const auto add_value = [&](u32 value) {
buffer[index] = value; buffer.resize(index + 1);
index++; buffer[index++] = value;
buffer.resize(index);
}; };
u32 iter_entry = start_entry; u32 iter_entry = start_entry;