vulkan: Destroy buffer before releasing associate memory

Exact same issue as the previous commit.
This commit is contained in:
Georges Basile Stavracas Neto 2017-12-13 23:14:58 -02:00
parent 147a455171
commit 8993a51893

View File

@ -80,12 +80,12 @@ gsk_vulkan_buffer_new_download (GdkVulkanContext *context,
void void
gsk_vulkan_buffer_free (GskVulkanBuffer *self) gsk_vulkan_buffer_free (GskVulkanBuffer *self)
{ {
gsk_vulkan_memory_free (self->memory);
vkDestroyBuffer (gdk_vulkan_context_get_device (self->vulkan), vkDestroyBuffer (gdk_vulkan_context_get_device (self->vulkan),
self->vk_buffer, self->vk_buffer,
NULL); NULL);
gsk_vulkan_memory_free (self->memory);
g_object_unref (self->vulkan); g_object_unref (self->vulkan);
g_slice_free (GskVulkanBuffer, self); g_slice_free (GskVulkanBuffer, self);