Fix issue with buffer recycling;

Must set next pointer to NULL!
This commit is contained in:
bjorn 2024-02-08 11:22:34 -08:00
parent d23164235b
commit df3544e5f3
1 changed files with 1 additions and 0 deletions

View File

@ -7228,6 +7228,7 @@ static BufferBlock* getBlock(gpu_buffer_type type, uint32_t size) {
static void freeBlock(BufferAllocator* allocator, BufferBlock* block) {
BufferBlock** list = &allocator->freelist;
while (*list) list = (BufferBlock**) &(*list)->next;
block->next = NULL;
*list = block;
}