mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user