1. Anders Ruud
  2. love

Issues

Issue #257 resolved

love.graphics.getRenderTarget needed.

Silver822
created an issue

Hello! In my project, i use 2 framebuffer seperately, and each function i call sets the render target to each framebuffer to draw to it and then resets it using love.graphics.setRenderTarget(), but when i am using render target number 1 and use function affecting render target number 2 it sets render target back to screen and all remaining draw operations are drawing to screen, not to Render Target. I've create my own love.graphics.getRenderTarget but it's sort of a workaround. {{{ local oldsetrt = love.graphics.setRenderTarget

function love.graphics.setRenderTarget(rt) _CURRENTRENDERTARGET = rt oldsetrt(rt) end

function love.graphics.getRenderTarget() return _CURRENTRENDERTARGET end }}}

Comments (3)

  1. Log in to comment