- transition scene images used for the screenshot to color attachment optimal before rendering to them

This commit is contained in:
Magnus Norddahl 2019-05-15 16:11:43 +02:00
parent 5e3ded629f
commit 99f58855ad

View file

@ -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();