Skip to content

Commit

Permalink
Re-enable texture pre-filters on wielditems, fixing #3178.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warr1024 authored and est31 committed Nov 24, 2015
1 parent 0cf1547 commit 900db31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wieldmesh.cpp
Expand Up @@ -283,7 +283,7 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,

// Customize material
video::SMaterial &material = m_meshnode->getMaterial(0);
material.setTexture(0, tsrc->getTexture(imagename));
material.setTexture(0, tsrc->getTextureForMesh(imagename));
material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE;
material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE;
material.MaterialType = m_material_type;
Expand Down

0 comments on commit 900db31

Please sign in to comment.