diff options
author | Benjamin Otte <otte.benjamin@googlemail.com> | 2023-04-14 23:28:55 +0000 |
---|---|---|
committer | Benjamin Otte <otte.benjamin@googlemail.com> | 2023-04-14 23:28:55 +0000 |
commit | ef3793ec3735248071fc8181585eee194b126075 (patch) | |
tree | 1bbe06f9c2e619ab49199d40379e80b5b8914807 | |
parent | 64a196929351d8fb33f621eee9b643caece03caf (diff) | |
parent | 94b1a7837848e25f6e58af5e57bff71c6bcc2296 (diff) | |
download | gtk+-ef3793ec3735248071fc8181585eee194b126075.tar.gz |
Merge branch 'gbsneto/vulkan-buffer-release' into 'main'
gsk/vulkan/render: Download image before reset
See merge request GNOME/gtk!5832
-rw-r--r-- | gsk/vulkan/gskvulkanrender.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gsk/vulkan/gskvulkanrender.c b/gsk/vulkan/gskvulkanrender.c index 586678c2e4..20ee28a218 100644 --- a/gsk/vulkan/gskvulkanrender.c +++ b/gsk/vulkan/gskvulkanrender.c @@ -647,9 +647,12 @@ gsk_vulkan_render_draw (GskVulkanRender *self) GdkTexture * gsk_vulkan_render_download_target (GskVulkanRender *self) { + GdkTexture *texture; + + texture = gsk_vulkan_image_download (self->target, self->uploader); gsk_vulkan_uploader_reset (self->uploader); - return gsk_vulkan_image_download (self->target, self->uploader); + return texture; } static void |