Skip to content

Commit

Permalink
two canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
leokaplan committed Apr 24, 2016
1 parent eeb9d91 commit f68746c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f68746c

Please sign in to comment.