diff options
author | xgoff <antipotroast@gmail.com> | 2012-08-02 11:35:37 -0500 |
---|---|---|
committer | xgoff <antipotroast@gmail.com> | 2012-08-02 11:35:37 -0500 |
commit | 0167b360e4c2b1515e24086d62357062cd398b8c (patch) | |
tree | f99630be921dd8ca0817a75b8759b039c42a3347 /fakecanvas.lua | |
parent | 06a2accace917edad968b970adfb23afa064e6ae (diff) | |
download | love2d-fakecanvas-0167b360e4c2b1515e24086d62357062cd398b8c.tar.gz love2d-fakecanvas-0167b360e4c2b1515e24086d62357062cd398b8c.tar.bz2 love2d-fakecanvas-0167b360e4c2b1515e24086d62357062cd398b8c.tar.xz love2d-fakecanvas-0167b360e4c2b1515e24086d62357062cd398b8c.zip |
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
Diffstat (limited to 'fakecanvas.lua')
-rw-r--r-- | fakecanvas.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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] |