Skip to content

Commit

Permalink
- don't run the custom shaders twice on screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed May 20, 2019
1 parent 2a15f65 commit e4dab70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rendering/vulkan/renderer/vk_postprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ void VkPostprocess::DrawPresentTexture(const IntRect &box, bool applyGamma, bool
auto fb = GetVulkanFrameBuffer();

VkPPRenderState renderstate;
hw_postprocess.customShaders.Run(&renderstate, "screen");

if (!screenshot) // Already applied as we are actually copying the last frame here (GetScreenshotBuffer is called after swap)
hw_postprocess.customShaders.Run(&renderstate, "screen");

PresentUniforms uniforms;
if (!applyGamma)
Expand Down

0 comments on commit e4dab70

Please sign in to comment.