summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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