[SOLVED] Canvas is crashing 11.2
Posted: Sun Jan 20, 2019 10:27 pm
Hello,
I'm using v11.2 in 64-bit Windows 10. Trying to use a canvas causes an immediate crash, even with the following minimal code:
Here's the error message:
I've tried moving setCanvas to update() and moving the newCanvas command outside load(), but the results are the same. I tinkered with canvases a bit in the previous version and don't remember having this problem, so am I correct in assuming this is a bug in 11.2 or am I doing something wrong?
I'm using v11.2 in 64-bit Windows 10. Trying to use a canvas causes an immediate crash, even with the following minimal code:
Code: Select all
function love.load()
canvas_1 = love.graphics.newCanvas()
end
function love.update()
end
function love.draw()
love.graphics.setCanvas(canvas_1)
end
Code: Select all
Error
boot.lua:514: present cannot be called while a Canvas is active.
Traceback
[C]: in function 'present'
[C]: in function 'xpcall'