mirror of https://github.com/bjornbytes/lovr.git
Fix issue with buffer recycling;
Must set next pointer to NULL!
This commit is contained in:
parent
d23164235b
commit
df3544e5f3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue