mirror of https://github.com/bjornbytes/lovr.git
Fix off-by-one error in gpu allocator;
Refcount wasn't being initialized to 1.
This commit is contained in:
parent
9b6e884f7f
commit
0b6fe9c81a
|
@ -2523,6 +2523,7 @@ static gpu_memory* gpu_allocate(gpu_memory_type type, VkMemoryRequirements info,
|
|||
|
||||
allocator->block = memory;
|
||||
allocator->cursor = info.size;
|
||||
allocator->block->refs = 1;
|
||||
*offset = 0;
|
||||
return memory;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue