From 99f58855adf8ed02480758f336c267573ac74198 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 15 May 2019 16:11:43 +0200 Subject: [PATCH] - transition scene images used for the screenshot to color attachment optimal before rendering to them --- src/rendering/vulkan/system/vk_framebuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rendering/vulkan/system/vk_framebuffer.cpp b/src/rendering/vulkan/system/vk_framebuffer.cpp index e0430cca16..2deff5223e 100644 --- a/src/rendering/vulkan/system/vk_framebuffer.cpp +++ b/src/rendering/vulkan/system/vk_framebuffer.cpp @@ -324,6 +324,8 @@ void VulkanFrameBuffer::WriteSavePic(player_t *player, FileWriter *file, int wid // Switch to render buffers dimensioned for the savepic mActiveRenderBuffers = mSaveBuffers.get(); + mPostprocess->ImageTransitionScene(true); + hw_ClearFakeFlat(); GetRenderState()->SetVertexBuffer(screen->mVertexData); screen->mVertexData->Reset();