From ad4013ed758d6cfe7d4876eba046003d774b152a Mon Sep 17 00:00:00 2001 From: Onek8 Date: Thu, 28 Aug 2025 19:11:31 +0000 Subject: [PATCH] Update leenkx/Sources/leenkx/renderpath/RenderPathForward.hx --- .../Sources/leenkx/renderpath/RenderPathForward.hx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx b/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx index 01e19ea..94b7bd4 100644 --- a/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx +++ b/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx @@ -641,18 +641,20 @@ class RenderPathForward { var framebuffer = ""; #end - #if ((rp_antialiasing == "Off") || (rp_antialiasing == "FXAA")) + RenderPathCreator.finalTarget = path.currentTarget; + + var target = ""; + #if ((rp_antialiasing == "Off") || (rp_antialiasing == "FXAA") || (!rp_render_to_texture)) { - RenderPathCreator.finalTarget = path.currentTarget; - path.setTarget(framebuffer); + target = framebuffer; } #else { - path.setTarget("buf"); - RenderPathCreator.finalTarget = path.currentTarget; + target = "buf"; } #end - + path.setTarget(target); + #if rp_compositordepth { path.bindTarget("_main", "gbufferD");