mirror of https://github.com/bjornbytes/lovr.git
Wire up non-headset lovr.draw/lovr.mirror;
This commit is contained in:
parent
8253b7361c
commit
6e27648ce5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue