mirror of https://github.com/bjornbytes/lovr.git
Fix error screen;
This commit is contained in:
parent
143b0ba664
commit
5324ae9a84
|
@ -191,13 +191,12 @@ function lovr.errhand(message, traceback)
|
||||||
elseif name == 'restart' then return 'restart', lovr.restart and lovr.restart()
|
elseif name == 'restart' then return 'restart', lovr.restart and lovr.restart()
|
||||||
elseif name == 'keypressed' and a == 'f5' then lovr.event.restart() end
|
elseif name == 'keypressed' and a == 'f5' then lovr.event.restart() end
|
||||||
end
|
end
|
||||||
local passes = {}
|
if lovr.headset and lovr.headset.getDriver() ~= 'desktop' then
|
||||||
if lovr.headset then
|
|
||||||
lovr.headset.update()
|
lovr.headset.update()
|
||||||
local pass = lovr.headset.getPass()
|
local pass = lovr.headset.getPass()
|
||||||
if pass then
|
if pass then
|
||||||
render(pass)
|
render(pass)
|
||||||
passes[#passes + 1] = pass
|
lovr.graphics.submit(pass)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if lovr.system.isWindowOpen() then
|
if lovr.system.isWindowOpen() then
|
||||||
|
@ -207,9 +206,9 @@ function lovr.errhand(message, traceback)
|
||||||
local projection = lovr.math.mat4():perspective(1.0, width / height, .1, 100)
|
local projection = lovr.math.mat4():perspective(1.0, width / height, .1, 100)
|
||||||
pass:setProjection(1, projection)
|
pass:setProjection(1, projection)
|
||||||
render(pass)
|
render(pass)
|
||||||
passes[#passes + 1] = pass
|
lovr.graphics.submit(pass)
|
||||||
|
lovr.graphics.present()
|
||||||
end
|
end
|
||||||
lovr.graphics.submit(passes)
|
|
||||||
if lovr.headset then lovr.headset.submit() end
|
if lovr.headset then lovr.headset.submit() end
|
||||||
if lovr.math then lovr.math.drain() end
|
if lovr.math then lovr.math.drain() end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue