mirror of
https://github.com/DramaticShape/DramaticShapeVoxelMod.git
synced 2026-08-12 08:01:09 +02:00
fix(ios): pin voxel render target scale
This commit is contained in:
+4
-2
@@ -25,6 +25,7 @@
|
||||
-- failure -- headless, no shader support) apply() hands the canvas back
|
||||
-- untouched, so every other path is byte-for-byte what it always was.
|
||||
|
||||
local V = ...
|
||||
local TiltShift = {}
|
||||
|
||||
TiltShift.level = 0
|
||||
@@ -85,9 +86,10 @@ end
|
||||
|
||||
local function getCanvases(w, h)
|
||||
if not ping or cw ~= w or ch ~= h then
|
||||
local ok, a = pcall(love.graphics.newCanvas, w, h)
|
||||
local PixelCanvas = V.require("PixelCanvas")
|
||||
local ok, a = PixelCanvas.new(w, h)
|
||||
if not ok then return nil end
|
||||
local okB, b = pcall(love.graphics.newCanvas, w, h)
|
||||
local okB, b = PixelCanvas.new(w, h)
|
||||
if not okB then return nil end
|
||||
-- the gaussian's fractional tap offsets need linear filtering
|
||||
a:setFilter("linear", "linear")
|
||||
|
||||
Reference in New Issue
Block a user