diff --git a/src/corelib/render.c b/src/corelib/render.c index 543e7d1..e39b58b 100644 --- a/src/corelib/render.c +++ b/src/corelib/render.c @@ -344,6 +344,7 @@ void insert_drawcmd_at(size_t index, const drawcmd_t* cmd) { void draw(const drawcmd_t* cmd) { if(g_drawdata_endptr == g_drawdata) { insert_drawcmd_at(0, cmd); + return; } long top = (size_t)(g_drawdata_endptr - g_drawdata), bot = 0,