mirror of https://github.com/bjornbytes/lovr.git
gpu: fix read scratchpad destruction;
This commit is contained in:
parent
4909a1963b
commit
c54a587590
|
@ -2197,7 +2197,7 @@ void gpu_destroy(void) {
|
|||
expunge();
|
||||
if (state.pipelineCache) vkDestroyPipelineCache(state.device, state.pipelineCache, NULL);
|
||||
if (state.scratchpad[0].buffer) vkDestroyBuffer(state.device, state.scratchpad[0].buffer, NULL);
|
||||
if (state.scratchpad[1].buffer) vkDestroyBuffer(state.device, state.scratchpad[0].buffer, NULL);
|
||||
if (state.scratchpad[1].buffer) vkDestroyBuffer(state.device, state.scratchpad[1].buffer, NULL);
|
||||
for (uint32_t i = 0; i < COUNTOF(state.ticks); i++) {
|
||||
gpu_tick* tick = &state.ticks[i];
|
||||
if (tick->pool) vkDestroyCommandPool(state.device, tick->pool, NULL);
|
||||
|
|
Loading…
Reference in New Issue