diff --git a/gui/gui.c b/gui/gui.c index 9e546c3..94aaedd 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -845,10 +845,11 @@ void gui_generate_draw_commands_inner( GUI_Node *sibling = GUI_NODE_SIBLING(node); if(sibling != NULL) { + GUI_Node *parent = GUI_NODE_PARENT(node); gui_generate_draw_commands_inner( x_offset, y_offset, sibling, - dirty || sibling->dirty, + parent->dirty || sibling->dirty, draw_command_arena, out_num_draw_commands); } GUI_Node *first_child = GUI_NODE_FIRST_CHILD(node);