Really fix detailmap

This commit is contained in:
Vincent Lejeune 2014-09-20 01:53:15 +02:00
parent 4e6d29e1ef
commit 1983fb8fc2

View File

@ -805,10 +805,10 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m
if (mb && mb->getVertexType() == video::EVT_2TCOORDS)
{
m->setTexture(2, m->getTexture(1));
m->setTexture(1, glossytex);
if (!m->getTexture(2))
m->setTexture(2, getUnicolorTexture(SColor(255, 255, 255, 255)));
}
m->setTexture(1, glossytex);
}