From: Benjamin Otte Date: Sun, 18 Jun 2023 16:38:48 +0000 (+0200) Subject: vulkan: Actually reset the buffer size X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~127^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=515e1642a4b95853edf660f3420bcb59d8d4295e;p=gtk4.git vulkan: Actually reset the buffer size Fixes a bug introduced in d1135f9e3c7. Luckily the buffer was large enough that all my testing didn't catch it because it took a few minutes to overflow. --- diff --git a/gsk/vulkan/gskvulkanrender.c b/gsk/vulkan/gskvulkanrender.c index da32f42639..99c20e5805 100644 --- a/gsk/vulkan/gskvulkanrender.c +++ b/gsk/vulkan/gskvulkanrender.c @@ -640,6 +640,7 @@ gsk_vulkan_render_prepare_descriptor_sets (GskVulkanRender *self) { gsk_vulkan_buffer_unmap (self->storage_buffer); self->storage_buffer_memory = NULL; + self->storage_buffer_used = 0; } GSK_VK_CHECK (vkAllocateDescriptorSets, device,