Skip to content
Permalink
Browse files

- transition scene images used for the screenshot to color attachment…

… optimal before rendering to them
  • Loading branch information...
dpjudas committed May 15, 2019
1 parent 5e3ded6 commit 99f58855adf8ed02480758f336c267573ac74198
Showing with 2 additions and 0 deletions.
  1. +2 −0 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();

0 comments on commit 99f5885

Please sign in to comment.
You can’t perform that action at this time.