My code for this overlay is as follows:
Code: Select all
local lg = love.graphics
lg.setShader()
lg.setFont(fontBig)
local fontHeight = fontBig:getHeight()
lg.printf({{180,0,0},'Game Over'}, 0, (screenHeight/2)-(fontHeight/2), screenWidth, 'center')
lg.setShader(args.shader)
Code: Select all
love.graphics.setCanvas(canvas)
love.graphics.clear()
self.level:draw()
love.graphics.setCanvas()
love.graphics.draw(canvas, 0, 0, 0, scale, scale)
Any ideas?
There are no other shaders nor canvas on my entire game.
I tried to remove love.graphics.clear() but nothing changed.