1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Don't incorrectly remove TexEnv state

This commit is contained in:
scrawl 2016-02-23 10:56:18 +01:00
parent d05603c7fe
commit 062410bd8c

View File

@ -142,13 +142,6 @@ namespace Shader
std::cerr << "ShaderVisitor encountered unknown texture " << texture << std::endl;
}
}
// remove state that has no effect when rendering with shaders
if (stateset->getTextureAttribute(unit, osg::StateAttribute::TEXENV))
{
if (!writableStateSet)
writableStateSet = getWritableStateSet(node);
writableStateSet->removeTextureAttribute(unit, osg::StateAttribute::TEXENV);
}
}
if (mAutoUseNormalMaps && diffuseMap != NULL && normalMap == NULL)