aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-11-26 19:17:50 +0100
committerKahrl <kahrl@gmx.net>2014-11-26 19:17:50 +0100
commit571ba5d9c5f237d80bc4677246f916574a807074 (patch)
treebee726de3c8b090e1916bd840ddaf2f82475c3ac /src
parent9f9279008c9299f6f1accd0a3b230877caa87930 (diff)
downloadminetest-571ba5d9c5f237d80bc4677246f916574a807074.tar.gz
minetest-571ba5d9c5f237d80bc4677246f916574a807074.tar.bz2
minetest-571ba5d9c5f237d80bc4677246f916574a807074.zip
EMF_USE_MIP_MAPS was introduced in Irrlicht 1.8, don't use in 1.7.3 or below
This is not optimal as it will cause minor graphical glitches for Irrlicht 1.7 users, but at least it fixes the build.
Diffstat (limited to 'src')
-rw-r--r--src/wieldmesh.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index ac0832057..71193da76 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -290,7 +290,9 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
material.setFlag(video::EMF_TRILINEAR_FILTER, false);
}
// mipmaps cause "thin black line" artifacts
+#if (IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8) || IRRLICHT_VERSION_MAJOR >= 2
material.setFlag(video::EMF_USE_MIP_MAPS, false);
+#endif
if (m_enable_shaders)
material.setTexture(2, tsrc->getTexture("disable_img.png"));
}