Issue #1342 invalid

Multicanvas doesn't seem to work

hahawoo
created an issue

Using the latest Windows nightly build, nothing is shown on the screen when drawing the second canvas in the following code, which works as expected using 0.10.2:

function love.load()
    print(love.graphics.getSystemLimits().multicanvas) -- 8

    canvas1 = love.graphics.newCanvas()
    canvas2 = love.graphics.newCanvas()

    love.graphics.setCanvas(canvas1, canvas2)
    love.graphics.print('test')
    love.graphics.setCanvas()
end

function love.draw()
    -- This works: love.graphics.draw(canvas1)
    love.graphics.draw(canvas2)
end

Comments (3)

  1. Alex Szpakowski

    You'll have to use a custom shader with void effect() and the love_Canvases array, to assign colors to pixels of multiple canvases.

    Legacy desktop OpenGL 2's GLSL allowed broadcasting a single color to all active render targets without using the array, but neither OpenGL ES' GLSL nor modern desktop OpenGL's GLSL have that functionality.

  2. Log in to comment