mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +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,7 +174,9 @@ void VkPostprocess::DrawPresentTexture(const IntRect &box, bool applyGamma, bool
|
||||||
auto fb = GetVulkanFrameBuffer();
|
auto fb = GetVulkanFrameBuffer();
|
||||||
|
|
||||||
VkPPRenderState renderstate;
|
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;
|
PresentUniforms uniforms;
|
||||||
if (!applyGamma)
|
if (!applyGamma)
|
||||||
|
|
Loading…
Reference in a new issue