mirror of https://github.com/bjornbytes/lovr.git
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()
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue