- don't run the custom shaders twice on screenshots

This commit is contained in:
Magnus Norddahl 2019-05-20 12:46:05 +02:00
parent 2a15f65065
commit e4dab707e4

View file

@ -174,6 +174,8 @@ void VkPostprocess::DrawPresentTexture(const IntRect &box, bool applyGamma, bool
auto fb = GetVulkanFrameBuffer(); auto fb = GetVulkanFrameBuffer();
VkPPRenderState renderstate; VkPPRenderState renderstate;
if (!screenshot) // Already applied as we are actually copying the last frame here (GetScreenshotBuffer is called after swap)
hw_postprocess.customShaders.Run(&renderstate, "screen"); hw_postprocess.customShaders.Run(&renderstate, "screen");
PresentUniforms uniforms; PresentUniforms uniforms;