From fafaa3fe49f982fbb3395a639dc060d9e5232cd6 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 13 Jul 2019 00:26:16 +0200 Subject: [PATCH] fix(camera): remove scissoring from the hump camera library used --- gamecore/modules/world/libs/hump/camera.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gamecore/modules/world/libs/hump/camera.lua b/gamecore/modules/world/libs/hump/camera.lua index cb86a79..34e7aef 100644 --- a/gamecore/modules/world/libs/hump/camera.lua +++ b/gamecore/modules/world/libs/hump/camera.lua @@ -107,9 +107,6 @@ function camera:attach(x,y,w,h, noclip) w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight() 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 love.graphics.push() @@ -121,7 +118,6 @@ end function camera:detach() love.graphics.pop() - love.graphics.setScissor(self._sx,self._sy,self._sw,self._sh) end function camera:draw(...)