Default errhand uses transparent background in AR;

This commit is contained in:
bjorn 2023-05-12 14:31:31 +01:00
parent 776a709de1
commit 61fe0f3bc0
1 changed files with 6 additions and 1 deletions

View File

@ -170,7 +170,12 @@ function lovr.errhand(message)
local y = math.min(height / 2, 10)
local z = -10
lovr.graphics.setBackgroundColor(.11, .10, .14)
if lovr.headset.getPassthrough() == 'opaque' then
lovr.graphics.setBackgroundColor(.11, .10, .14)
else
lovr.graphics.setBackgroundColor(0, 0, 0, 0)
end
font:setPixelDensity()
local function render(pass)