1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00

Wire up non-headset lovr.draw/lovr.mirror;

This commit is contained in:
bjorn 2022-05-30 15:35:07 -07:00
parent 8253b7361c
commit 6e27648ce5

View file

@ -134,12 +134,17 @@ function lovr.run()
if lovr.timer then dt = lovr.timer.step() end if lovr.timer then dt = lovr.timer.step() end
if lovr.headset then dt = lovr.headset.update() end if lovr.headset then dt = lovr.headset.update() end
if lovr.update then lovr.update(dt) end if lovr.update then lovr.update(dt) end
if lovr.graphics then
if lovr.system.isWindowOpen() then lovr.mirror() end
end
if lovr.math then lovr.math.drain() end if lovr.math then lovr.math.drain() end
end end
end end
function lovr.mirror() function lovr.mirror()
-- local pass = lovr.graphics.pass('render', 'window')
lovr.draw(pass)
lovr.graphics.submit(pass)
end end
local function formatTraceback(s) local function formatTraceback(s)