core/menusystem: fix a crash

This commit is contained in:
Kazhnuz 2019-02-10 20:00:48 +01:00
parent 648ede5874
commit b417eb5c6a

View file

@ -64,10 +64,10 @@ end
function Menu:draw()
if self.canvas.needRedraw == true then
CScreen:cease()
core.screen:cease()
self:drawCanvas()
self.canvas.needRedraw = false
CScreen:apply()
core.screen:apply()
end
love.graphics.draw(self.canvas.texture, self.x, self.y)