forked from AuroraMiddleware/gtk
vulkan: Destroy buffer before releasing associate memory
Exact same issue as the previous commit.
This commit is contained in:
parent
147a455171
commit
8993a51893
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user