summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte.benjamin@googlemail.com>2023-04-14 23:28:55 +0000
committerBenjamin Otte <otte.benjamin@googlemail.com>2023-04-14 23:28:55 +0000
commitef3793ec3735248071fc8181585eee194b126075 (patch)
tree1bbe06f9c2e619ab49199d40379e80b5b8914807
parent64a196929351d8fb33f621eee9b643caece03caf (diff)
parent94b1a7837848e25f6e58af5e57bff71c6bcc2296 (diff)
downloadgtk+-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.c5
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