Do not leak graphics state from .draw()
This commit is contained in:
parent
d0a1addc0b
commit
cb93f4e48e
1 changed files with 2 additions and 0 deletions
2
core.lua
2
core.lua
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue