From f68746c10872853d0f8a958265ac8de75b6c4c2c Mon Sep 17 00:00:00 2001 From: Leonardo Kaplan Date: Sun, 24 Apr 2016 15:38:59 +0200 Subject: [PATCH] two canvas --- lib/util.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/util.lua b/lib/util.lua index 5d16bae..7da2d50 100644 --- a/lib/util.lua +++ b/lib/util.lua @@ -3,7 +3,9 @@ local util = {} function util.process(canvas, options) --TODO: now you cannot draw a canvas to itself - util.drawCanvasToCanvas(canvas, canvas, options) + temp = love.graphics.newCanvas() + util.drawCanvasToCanvas(canvas, temp, options) + util.drawCanvasToCanvas(temp, canvas, options) end function util.drawCanvasToCanvas(canvas, other_canvas, options)