lovr.mirror: don't call lovr.headset.getMirrorTexture twice;
@@ -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
