|
|
@ -238,9 +238,7 @@ vkr_device_object_destroy(struct vkr_context *ctx, |
|
|
|
break; |
|
|
|
break; |
|
|
|
case VK_OBJECT_TYPE_DEVICE_MEMORY: |
|
|
|
case VK_OBJECT_TYPE_DEVICE_MEMORY: |
|
|
|
vkFreeMemory(device, obj->handle.device_memory, NULL); |
|
|
|
vkFreeMemory(device, obj->handle.device_memory, NULL); |
|
|
|
|
|
|
|
vkr_device_memory_release((struct vkr_device_memory *)obj); |
|
|
|
/* remove device memory from exported or attachment list */ |
|
|
|
|
|
|
|
list_del(&((struct vkr_device_memory *)obj)->exported_head); |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case VK_OBJECT_TYPE_BUFFER: |
|
|
|
case VK_OBJECT_TYPE_BUFFER: |
|
|
|
vkDestroyBuffer(device, obj->handle.buffer, NULL); |
|
|
|
vkDestroyBuffer(device, obj->handle.buffer, NULL); |
|
|
|