summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-13 20:56:13 +1100
committerquou <quou@disroot.org>2025-01-13 20:56:13 +1100
commit014077c89bb3c50718d56430f387109ad43508b6 (patch)
tree02fa1ab03218fc22de4d875b7d8d593cbc19d67c /ui.cpp
parent4d5cdc97a044a39fabbfb980b2e48a817a6e485f (diff)
basic picking and debug rendering
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp2
1 files changed, 1 insertions, 1 deletions
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) {