mirror of https://github.com/bjornbytes/lovr.git
Compare commits
2 Commits
4719dbdd10
...
1cda2d59a7
Author | SHA1 | Date |
---|---|---|
bjorn | 1cda2d59a7 | |
bjorn | f93fb0c0c7 |
|
@ -184,7 +184,7 @@ static struct {
|
|||
VkDebugUtilsMessengerEXT messenger;
|
||||
gpu_allocator allocators[GPU_MEMORY_COUNT];
|
||||
uint8_t allocatorLookup[GPU_MEMORY_COUNT];
|
||||
gpu_memory memory[256];
|
||||
gpu_memory memory[1024];
|
||||
uint32_t streamCount;
|
||||
uint32_t tick[2];
|
||||
gpu_tick ticks[2];
|
||||
|
|
|
@ -5242,7 +5242,10 @@ void lovrPassDestroy(void* ref) {
|
|||
gpu_tally_destroy(pass->tally.gpu);
|
||||
lovrRelease(pass->tally.tempBuffer, lovrBufferDestroy);
|
||||
}
|
||||
if (pass->buffers.current) freeBlock(&state.bufferAllocators[GPU_BUFFER_STREAM], pass->buffers.current);
|
||||
if (pass->buffers.current) {
|
||||
pass->buffers.current->tick = state.tick;
|
||||
freeBlock(&state.bufferAllocators[GPU_BUFFER_STREAM], pass->buffers.current);
|
||||
}
|
||||
os_vm_free(pass->allocator.memory, pass->allocator.limit);
|
||||
free(pass);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue