aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/sidebyside.cpp
diff options
context:
space:
mode:
authorotdav33 <odavies@dread.life>2018-05-29 12:38:58 -0400
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-05-29 18:38:58 +0200
commit3f0720e721a2f4360fd0397a67ad57e0adc30f79 (patch)
tree95d6b360da58b208d3b724e093090c1fd9b172e7 /src/client/render/sidebyside.cpp
parent7f7678e4e30fdae3722c3f75d4dc6488364d853e (diff)
downloadminetest-3f0720e721a2f4360fd0397a67ad57e0adc30f79.tar.gz
minetest-3f0720e721a2f4360fd0397a67ad57e0adc30f79.tar.bz2
minetest-3f0720e721a2f4360fd0397a67ad57e0adc30f79.zip
Add crossview support (#7361)
Diffstat (limited to 'src/client/render/sidebyside.cpp')
-rw-r--r--src/client/render/sidebyside.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/render/sidebyside.cpp b/src/client/render/sidebyside.cpp
index 9b1e06d4a..ed08810db 100644
--- a/src/client/render/sidebyside.cpp
+++ b/src/client/render/sidebyside.cpp
@@ -23,8 +23,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "client/hud.h"
RenderingCoreSideBySide::RenderingCoreSideBySide(
- IrrlichtDevice *_device, Client *_client, Hud *_hud, bool _horizontal)
- : RenderingCoreStereo(_device, _client, _hud), horizontal(_horizontal)
+ IrrlichtDevice *_device, Client *_client, Hud *_hud, bool _horizontal, bool _flipped)
+ : RenderingCoreStereo(_device, _client, _hud), horizontal(_horizontal), flipped(_flipped)
{
}
@@ -62,7 +62,7 @@ void RenderingCoreSideBySide::drawAll()
void RenderingCoreSideBySide::useEye(bool _right)
{
driver->setRenderTarget(_right ? right : left, true, true, skycolor);
- RenderingCoreStereo::useEye(_right);
+ RenderingCoreStereo::useEye(_right ^ flipped);
}
void RenderingCoreSideBySide::resetEye()