From 08a377ff30751d700d1e1ee33c20951214e9ce07 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 8 Apr 2017 18:53:48 -0300 Subject: [PATCH] Rename love.graphics.flush to love.graphics.flushBatch. Mesh/Spritebatch/Text:flush already exist and do something a bit different (flush vertices instead of render a pending batch). --HG-- branch : minor --- src/modules/graphics/wrap_Graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index fb6f20e0c..046e11455 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/src/modules/graphics/wrap_Graphics.cpp @@ -2383,7 +2383,7 @@ int w_polygon(lua_State *L) return 0; } -int w_flush(lua_State *) +int w_flushBatch(lua_State *) { instance()->flushStreamDraws(); return 0; @@ -2590,7 +2590,7 @@ static const luaL_Reg functions[] = { "arc", w_arc }, { "polygon", w_polygon }, - { "flush", w_flush }, + { "flushBatch", w_flushBatch }, { "push", w_push }, { "pop", w_pop },