diff options
author | sapier <Sapier at GMX dot net> | 2014-08-29 00:54:46 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-08-29 00:54:46 +0200 |
commit | fb2183b61da9298e78b483da5a6ad79779eac64b (patch) | |
tree | ca6c372e707220e888cdcd67043aa872cfb63f09 /src | |
parent | 8ab2971e0b32bc751c4b6b0c0aab57bc9432a1cf (diff) | |
download | minetest-fb2183b61da9298e78b483da5a6ad79779eac64b.tar.gz minetest-fb2183b61da9298e78b483da5a6ad79779eac64b.tar.bz2 minetest-fb2183b61da9298e78b483da5a6ad79779eac64b.zip |
Fix interlaced 3d mode second image being flipped on compiling against irrlicht >= 1.8
Diffstat (limited to 'src')
-rw-r--r-- | src/drawscene.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drawscene.cpp b/src/drawscene.cpp index 9672affea..5d214d128 100644 --- a/src/drawscene.cpp +++ b/src/drawscene.cpp @@ -275,7 +275,11 @@ void draw_interlaced_3d_mode(Camera& camera, bool show_hud, guienv->drawAll(); for (unsigned int i = 0; i < screensize.Y; i+=2 ) { +#if (IRRLICHT_VERSION_MAJOR >= 1) && (IRRLICHT_VERSION_MINOR >= 8) + driver->draw2DImage(left_image, irr::core::position2d<s32>(0, i), +#else driver->draw2DImage(left_image, irr::core::position2d<s32>(0, screensize.Y-i), +#endif irr::core::rect<s32>(0, i,screensize.X, i+1), 0, irr::video::SColor(255, 255, 255, 255), false); |