diff --git a/docs/modernization/debt.md b/docs/modernization/debt.md index ee46ecf..2a13329 100644 --- a/docs/modernization/debt.md +++ b/docs/modernization/debt.md @@ -18,6 +18,10 @@ agent or engineer to remove them without reconstructing context from chat. ## Recent Reductions +- 2026-06-13: DEBT-0036 was narrowed again. `NodeStrokePreview::draw_stroke_immediate()` + no longer duplicates main-pass setup in the outer `prepare_main_pass` block; + the retained main-live-pass helper now owns blend-uniform and texture binding + setup, while the sequence wrapper keeps only structural pass ordering. - 2026-06-13: DEBT-0036 was narrowed again. `NodeStrokePreview::draw_stroke_immediate()` now routes the main live-pass setup, frame execution, and preview copy-back through `execute_legacy_node_stroke_preview_main_live_pass(...)`; the diff --git a/src/node_stroke_preview.cpp b/src/node_stroke_preview.cpp index 57bdcc9..8d50ac0 100644 --- a/src/node_stroke_preview.cpp +++ b/src/node_stroke_preview.cpp @@ -763,21 +763,7 @@ void NodeStrokePreview::draw_stroke_immediate() m_plane.draw_fill(); }); }, - .prepare_main_pass = [&] { - pp::panopainter::use_legacy_stroke_shader(); - pp::panopainter::apply_legacy_stroke_blend_uniforms( - material.stroke_pass.uses_pattern, - b->m_tip_mix, - b->m_tip_wet, - b->m_tip_noise); - - bind_stroke_preview_main_pass_textures( - *b, - m_tex, - m_rtt_mixer, - copy_stroke_destination, - pass_orchestration.composite.uses_mixer); - }, + .prepare_main_pass = [&] {}, .execute_main_pass = [&] { [[maybe_unused]] const bool main_live_ok = pp::panopainter::execute_legacy_node_stroke_preview_main_live_pass(