From 306bb808500b549be91612f543d97b7b5a16aa14 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Tue, 1 Jul 2025 15:16:53 +0200 Subject: [PATCH] Fix render path ending --- base/sources/ts/iron/render_path.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/sources/ts/iron/render_path.ts b/base/sources/ts/iron/render_path.ts index 54003167..98c9f239 100644 --- a/base/sources/ts/iron/render_path.ts +++ b/base/sources/ts/iron/render_path.ts @@ -70,7 +70,6 @@ function render_path_set_target(target: string, additional: string[] = null, dep if (_render_path_current_image != null) { render_path_end(); } - _render_path_current_image = render_target; if (target == "") { // Framebuffer _render_path_current_target = null; @@ -95,6 +94,7 @@ function render_path_set_target(target: string, additional: string[] = null, dep render_path_current_w = rt._image.width; render_path_current_h = rt._image.height; let db: render_target_t = map_get(render_path_render_targets, depth_buffer); + _render_path_current_image = rt._image; _gpu_begin(rt._image, additional_images, db != null ? db._image : null, flags, color, depth); } _render_path_bind_params = null;