Skip to content

Commit

Permalink
- transition scene images used for the screenshot to color attachment…
Browse files Browse the repository at this point in the history
… optimal before rendering to them
  • Loading branch information
dpjudas committed May 15, 2019
1 parent 5e3ded6 commit 99f5885
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rendering/vulkan/system/vk_framebuffer.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 99f5885

Please sign in to comment.