Route final texture setup sites through helper

This commit is contained in:
2026-06-13 05:40:24 +02:00
parent 1ae623000a
commit 14ea181ec3
4 changed files with 18 additions and 6 deletions

View File

@@ -765,9 +765,11 @@ void NodeCanvas::draw()
m_sampler_nearest.bind(0);
set_active_texture_unit(0);
m_rtt.bindTexture();
ShaderManager::use(kShader::Texture);
ShaderManager::u_int(kShaderUniform::Tex, 0);
ShaderManager::u_mat4(kShaderUniform::MVP, glm::ortho<float>(-1, 1, -1, 1));
pp::panopainter::setup_legacy_canvas_draw_merge_texture_shader(
pp::panopainter::LegacyCanvasDrawMergeTextureUniforms {
.mvp = glm::ortho<float>(-1, 1, -1, 1),
.texture_slot = 0,
});
m_face_plane.draw_fill();
m_rtt.unbindTexture();
}