diff options
author | sfan5 <sfan5@live.de> | 2016-12-24 14:26:03 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-12-26 22:36:22 +0100 |
commit | 084cdea6862cb65fe4bb807a211a9e1c17cffec8 (patch) | |
tree | 64c0bd1d43a34b8b7c026ececf31f681fb0d68c4 /src/drawscene.cpp | |
parent | b16252dcae8c6b0e79c20fa4c3cbddc37ad377cb (diff) | |
download | minetest-084cdea6862cb65fe4bb807a211a9e1c17cffec8.tar.gz minetest-084cdea6862cb65fe4bb807a211a9e1c17cffec8.tar.bz2 minetest-084cdea6862cb65fe4bb807a211a9e1c17cffec8.zip |
Irrlicht 1.9 support
Diffstat (limited to 'src/drawscene.cpp')
-rw-r--r-- | src/drawscene.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drawscene.cpp b/src/drawscene.cpp index c6abda4ac..32a078b8e 100644 --- a/src/drawscene.cpp +++ b/src/drawscene.cpp @@ -383,6 +383,10 @@ void draw_pageflip_3d_mode(Camera& camera, bool show_hud, bool draw_wield_tool, Client& client, gui::IGUIEnvironment* guienv, video::SColor skycolor) { +#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8 + errorstream << "Pageflip 3D mode is not supported" + << " with your Irrlicht version!" << std::endl; +#else /* preserve old setup*/ irr::core::vector3df oldPosition = camera.getCameraNode()->getPosition(); irr::core::vector3df oldTarget = camera.getCameraNode()->getTarget(); @@ -451,6 +455,7 @@ void draw_pageflip_3d_mode(Camera& camera, bool show_hud, camera.getCameraNode()->setPosition(oldPosition); camera.getCameraNode()->setTarget(oldTarget); +#endif } void draw_plain(Camera &camera, bool show_hud, Hud &hud, |