Fixed up the API: setCanvas (singular) now only takes one canvas, setCanvases must be used for multi-canvas rendering

--HG--
branch : MRTs
This commit is contained in:
Alex Szpakowski
2013-03-25 21:23:09 -03:00
parent 2ea065c68b
commit 6c5daab312
5 changed files with 74 additions and 11 deletions
+1 -2
View File
@@ -47,10 +47,9 @@ int w_Canvas_renderTo(lua_State *L)
if (!lua_isfunction(L, 2))
return luaL_error(L, "Need a function to render to canvas.");
static std::vector<Canvas *> attachments;
try
{
canvas->startGrab(attachments);
canvas->startGrab();
}
catch (love::Exception &e)
{