Skip to content

Commit

Permalink
Reset graphics before redrawing the canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
npmiller committed Jan 24, 2016
1 parent e9f2576 commit 2e8a0d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions k3towdef.love/grid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function Grid:load(base)
end

function Grid:drawCanvas()
graphics.reset()
self.canvas = graphics.newCanvas(self.width, self.height)
graphics.setCanvas(self.canvas)
graphics.clear()
Expand Down

0 comments on commit 2e8a0d2

Please sign in to comment.