From 014077c89bb3c50718d56430f387109ad43508b6 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 13 Jan 2025 20:56:13 +1100 Subject: basic picking and debug rendering --- ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.cpp') diff --git a/ui.cpp b/ui.cpp index 54be1ff..aaa3e59 100644 --- a/ui.cpp +++ b/ui.cpp @@ -515,9 +515,9 @@ void UI::render(Arena* s, Texture_Id target) { pb.texture(shader_info.atlas_binding, atlas, sampler); pipeline = &pb.build(); - mesh.reset(Rect(0, 0, t.w, t.h)); root->render(); mesh.draw(this, ctx, *pipeline, *render_pass); + mesh.reset(Rect(0, 0, t.w, t.h)); } void UI::draw_container(const Rect& bound, Colour c) { -- cgit v1.2.3-54-g00ecf