summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
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) {