mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-02 20:43:35 +00:00
lovr.mirror: don't call lovr.headset.getMirrorTexture twice;
This commit is contained in:
parent
c1b3bc61b1
commit
8ef50b5f6a
|
@ -221,9 +221,9 @@ function lovr.mirror()
|
||||||
local texture = lovr.headset.getMirrorTexture()
|
local texture = lovr.headset.getMirrorTexture()
|
||||||
if texture then -- On some drivers, texture is printed directly to the window
|
if texture then -- On some drivers, texture is printed directly to the window
|
||||||
if lovr.headset.getDriver() == 'oculus' then
|
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
|
else
|
||||||
lovr.graphics.fill(lovr.headset.getMirrorTexture())
|
lovr.graphics.fill(texture)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue