aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-11-26 19:54:04 +0100
committerKahrl <kahrl@gmx.net>2014-11-26 19:54:04 +0100
commit264d740c9de7834d8a5bcdc2c1ee3df828d9cdaa (patch)
treef0113cc0b01d1af8e92f5209319b4685c595089f
parent571ba5d9c5f237d80bc4677246f916574a807074 (diff)
downloadminetest-264d740c9de7834d8a5bcdc2c1ee3df828d9cdaa.tar.gz
minetest-264d740c9de7834d8a5bcdc2c1ee3df828d9cdaa.tar.bz2
minetest-264d740c9de7834d8a5bcdc2c1ee3df828d9cdaa.zip
Wield: always obey anisotropic_filter setting, not just for hi res textures
-rw-r--r--src/wieldmesh.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index 71193da76..66793249a 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -279,16 +279,15 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
material.setTexture(0, texture);
material.MaterialType = m_material_type;
material.setFlag(video::EMF_BACK_FACE_CULLING, true);
- // Enable filtering only for high resolution texures
+ // Enable bi/trilinear filtering only for high resolution textures
if (dim.Width > 32) {
- material.setFlag(video::EMF_ANISOTROPIC_FILTER, m_anisotropic_filter);
material.setFlag(video::EMF_BILINEAR_FILTER, m_bilinear_filter);
material.setFlag(video::EMF_TRILINEAR_FILTER, m_trilinear_filter);
} else {
- material.setFlag(video::EMF_ANISOTROPIC_FILTER, false);
material.setFlag(video::EMF_BILINEAR_FILTER, false);
material.setFlag(video::EMF_TRILINEAR_FILTER, false);
}
+ material.setFlag(video::EMF_ANISOTROPIC_FILTER, m_anisotropic_filter);
// 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);