fix(camera): remove scissoring from the hump camera library used

This commit is contained in:
Kazhnuz 2019-07-13 00:26:16 +02:00
parent 443b8c0e1c
commit fafaa3fe49

View file

@ -107,9 +107,6 @@ function camera:attach(x,y,w,h, noclip)
w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight() w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight()
self._sx,self._sy,self._sw,self._sh = love.graphics.getScissor() self._sx,self._sy,self._sw,self._sh = love.graphics.getScissor()
if not noclip then
love.graphics.setScissor(x,y,w,h)
end
local cx,cy = x+w/2, y+h/2 local cx,cy = x+w/2, y+h/2
love.graphics.push() love.graphics.push()
@ -121,7 +118,6 @@ end
function camera:detach() function camera:detach()
love.graphics.pop() love.graphics.pop()
love.graphics.setScissor(self._sx,self._sy,self._sw,self._sh)
end end
function camera:draw(...) function camera:draw(...)