fix(ios): present voxel pipeline canvases

This commit is contained in:
Adrian Castro
2026-08-01 14:37:18 +02:00
parent 90437a5d8d
commit be60c7c1d5
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ end
-- shape (love.graphics.newCanvas), so accept either and nothing else. -- shape (love.graphics.newCanvas), so accept either and nothing else.
local function isCanvas(v) local function isCanvas(v)
if type(v) == "userdata" then if type(v) == "userdata" then
return type(v.typeOf) == "function" and v:typeOf("Canvas") == true return type(v.getWidth) == "function" and type(v.getHeight) == "function"
end end
if type(v) == "table" then if type(v) == "table" then
return type(v.getWidth) == "function" and type(v.getHeight) == "function" return type(v.getWidth) == "function" and type(v.getHeight) == "function"
+5 -1
View File
@@ -32,7 +32,7 @@ Renderer.MAX_UI_HEIGHT = 576
-- would otherwise take the frame down with it. -- would otherwise take the frame down with it.
local function isCanvas(v) local function isCanvas(v)
if type(v) == "userdata" then if type(v) == "userdata" then
return type(v.typeOf) == "function" and v:typeOf("Canvas") == true return type(v.getWidth) == "function" and type(v.getHeight) == "function"
end end
if type(v) == "table" then if type(v) == "table" then
return type(v.getWidth) == "function" and type(v.getHeight) == "function" return type(v.getWidth) == "function" and type(v.getHeight) == "function"
@@ -602,7 +602,11 @@ function Renderer:endFrame(zones, worldZones)
-- runs, so dialogs, menus and the HUD sit on top as usual. -- runs, so dialogs, menus and the HUD sit on top as usual.
love.graphics.setColor(1, 1, 1, 1) love.graphics.setColor(1, 1, 1, 1)
love.graphics.setScissor(0, 0, ww, wh) love.graphics.setScissor(0, 0, ww, wh)
if love.system and love.system.getOS and love.system.getOS() == "iOS" then
love.graphics.draw(self.worldOverride, 0, wh, 0, 1 / dpiX, -1 / dpiY)
else
love.graphics.draw(self.worldOverride, 0, 0, 0, 1 / dpiX, 1 / dpiY) love.graphics.draw(self.worldOverride, 0, 0, 0, 1 / dpiX, 1 / dpiY)
end
love.graphics.setScissor() love.graphics.setScissor()
-- the screen-space overlays the flat path draws over its composite -- the screen-space overlays the flat path draws over its composite
local fade = self.worldFadeAlpha local fade = self.worldFadeAlpha