realloc last buffer before attempting to reuse it
This commit is contained in:
parent
32b72fe50d
commit
ee85a728a7
Binary file not shown.
Binary file not shown.
|
@ -1215,6 +1215,8 @@ NK_API void nk_quickdraw_render(WindowPtr window, struct nk_context *ctx) {
|
||||||
PROFILE_START("memcpy commands");
|
PROFILE_START("memcpy commands");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
free(last);
|
||||||
|
last = calloc(1, MAX_MEMORY_IN_KB * 1024);
|
||||||
memcpy(last, cmds, ctx->memory.allocated);
|
memcpy(last, cmds, ctx->memory.allocated);
|
||||||
|
|
||||||
#ifdef PROFILING
|
#ifdef PROFILING
|
||||||
|
|
Loading…
Reference in New Issue