Do not leak graphics state from .draw()

This commit is contained in:
Matthias Richter 2016-03-13 13:30:27 +01:00
parent d0a1addc0b
commit cb93f4e48e

View file

@ -162,9 +162,11 @@ end
function suit:draw()
self:exitFrame()
love.graphics.push('all')
for i = 1,self.draw_queue.n do
self.draw_queue[i]()
end
love.graphics.pop()
self.draw_queue.n = 0
self:enterFrame()
end