Update leenkx/Sources/leenkx/renderpath/RenderPathForward.hx

This commit is contained in:
2025-08-28 19:11:31 +00:00
parent 8ac567b57b
commit ad4013ed75

View File

@ -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");