Skip to content

Commit

Permalink
Fixed vurtun#173 draw list clearing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vurtun committed Jun 29, 2016
1 parent 4abd29f commit 605d59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -5525,9 +5525,9 @@ nk_draw_list_clear(struct nk_draw_list *list)
if (!list) return;
if (list->buffer)
nk_buffer_clear(list->buffer);
if (list->elements)
nk_buffer_clear(list->vertices);
if (list->vertices)
nk_buffer_clear(list->vertices);
if (list->elements)
nk_buffer_clear(list->elements);

list->element_count = 0;
Expand Down

0 comments on commit 605d59b

Please sign in to comment.