mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
setCanvas: rephrase confusing error message.
This commit is contained in:
@@ -290,7 +290,7 @@ int w_setCanvas(lua_State *L)
|
||||
targets.colors.emplace_back(luax_checkcanvas(L, -1), 0);
|
||||
|
||||
if (targets.colors.back().canvas->getTextureType() != TEXTURE_2D)
|
||||
return luaL_error(L, "The table-of-tables variant of setCanvas must be used with non-2D Canvases.");
|
||||
return luaL_error(L, "Non-2D canvases must use the table-of-tables variant of setCanvas.");
|
||||
}
|
||||
|
||||
lua_pop(L, 1);
|
||||
|
||||
Reference in New Issue
Block a user