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
1 changed files with 6 additions and 1 deletions

View File

@ -134,12 +134,17 @@ function lovr.run()
if lovr.timer then dt = lovr.timer.step() end
if lovr.headset then dt = lovr.headset.update() 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
end
end
function lovr.mirror()
--
local pass = lovr.graphics.pass('render', 'window')
lovr.draw(pass)
lovr.graphics.submit(pass)
end
local function formatTraceback(s)