From 0167b360e4c2b1515e24086d62357062cd398b8c Mon Sep 17 00:00:00 2001 From: xgoff Date: Thu, 2 Aug 2012 11:35:37 -0500 Subject: handle stencils... by discarding them. i was expecting to have to jump through hoops to not have to call stencil functions multiple times but fortunately that is not the case --- fakecanvas.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fakecanvas.lua') diff --git a/fakecanvas.lua b/fakecanvas.lua index c881693..172d17b 100644 --- a/fakecanvas.lua +++ b/fakecanvas.lua @@ -147,6 +147,8 @@ savefbstate() local function setCanvas (...) assert(select("#", ...) == 0 or (select("#", ...) == 1 and type(...) == "userdata"), "Incorrect parameter type: expected userdata") + love.graphics.setStencil() -- fortunately LOVE does this as well which makes things much easier + local to = ... if to then current_canvas = canvases[to] -- cgit v1.2.3-54-g00ecf