Here's the minimum code for what I'm trying to do
function myDrawSubFunction() local x,y,w,h = love.graphics.getScissor() --backup scissor --setMyScissor() --draw stuff love.graphics.setScissor(x,y,w,h) --restore scissor end
I get a nil parameter error from setScissor() because, naturally, nil is not a valid scissor value. It would be nice if the returns from getScissor() were always valid to pass to setScissor(). (say, by making nils disable scissor)
This same problem also applies to get/setFont (and probably others), but at least with the font function once you set a default font, you're good for the run. Not so with scissor which is breaks whenever scissor is disabled.