From 412f65fa6543692404373294d81653c58b5ad3ad Mon Sep 17 00:00:00 2001 From: vurtun Date: Sat, 23 Apr 2016 16:29:58 +0200 Subject: [PATCH] Fix #108 pushing wrong texture in empty draw_list Fixed a small copy & paste error which pushes the wrong texture into an empty draw list. In normal cases this never occurs but is still a big if used independent of libraries use cases. --- nuklear.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuklear.h b/nuklear.h index d84c16c..c47ac32 100644 --- a/nuklear.h +++ b/nuklear.h @@ -5658,7 +5658,7 @@ nk_draw_list_push_image(struct nk_draw_list *list, nk_handle texture) NK_ASSERT(list); if (!list) return; if (!list->cmd_count) { - nk_draw_list_push_command(list, nk_null_rect, list->null.texture); + nk_draw_list_push_command(list, nk_null_rect, texture); } else { struct nk_draw_command *prev = nk_draw_list_command_last(list); if (prev->elem_count == 0)