mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- don't run the custom shaders twice on screenshots
This commit is contained in:
parent
2a15f65065
commit
e4dab707e4
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue