mirror of https://github.com/vurtun/nuklear.git
Fixed #647 window open/close flickering
Opening and closing a set of windows with at least one other window active caused flickering if a window as closed. Reason was a missing check inside `nk_build` that did not skip newly closed windows. I am not 100% sure but this could also affect #637 but I still needs to be tested.pull/649/head
parent
20cd35c0fb
commit
94c0412a08
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue