diff options
-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 |