RobLoach / nuklear_console

Console-like user interface for Nuklear with gamepad, keyboard or mouse support
https://robloach.github.io/nuklear_console/
MIT License
13 stars 3 forks source link

Prevent NK_ASSERT error when minimizing or closing a console window. #116

Closed fkallevik closed 2 weeks ago

fkallevik commented 2 weeks ago

See Immediate-Mode-UI/Nuklear/blob/master/src/nuklear_layout.c:85

/*  if one of these triggers you forgot to add an `if` condition around either
    a window, group, popup, combobox or contextual menu `begin` and `end` block.
    Example:
        if (nk_begin(...) {...} nk_end(...); or
        if (nk_group_begin(...) { nk_group_end(...);} */
RobLoach commented 2 weeks ago

Thanks a lot for the fix here.