lovr.mirror: don't call lovr.headset.getMirrorTexture twice;

This commit is contained in:
bjorn 2020-12-02 14:46:37 -07:00
parent c1b3bc61b1
commit 8ef50b5f6a
1 changed files with 2 additions and 2 deletions

View File

@ -221,9 +221,9 @@ function lovr.mirror()
local texture = lovr.headset.getMirrorTexture()
if texture then -- On some drivers, texture is printed directly to the window
if lovr.headset.getDriver() == 'oculus' then
lovr.graphics.fill(lovr.headset.getMirrorTexture(), 0, 1, 1, -1)
lovr.graphics.fill(texture, 0, 1, 1, -1)
else
lovr.graphics.fill(lovr.headset.getMirrorTexture())
lovr.graphics.fill(texture)
end
end
else