|
@@ -18941,7 +18941,7 @@ nk_build(struct nk_context *ctx)
|
|
|
|
|
|
cmd = nk_ptr_add(struct nk_command, buffer, it->buffer.last);
|
|
|
while (next && ((next->buffer.last == next->buffer.begin) ||
|
|
|
- (next->flags & NK_WINDOW_HIDDEN)))
|
|
|
+ (next->flags & NK_WINDOW_HIDDEN) || next->seq != ctx->seq))
|
|
|
next = next->next; /* skip empty command buffers */
|
|
|
|
|
|
if (next) cmd->next = next->buffer.begin;
|