Merge pull request #1119 from Lopuska/patch-18

OpenGL fix - fixed a crash when you activate Alpha Threshold checkbox wi...
This commit is contained in:
Luis Anton Rebollo 2015-01-24 22:58:47 +01:00
commit ca382f56a6

View file

@ -986,11 +986,8 @@ void DiffuseMapFeatGLSL::setTexData( Material::StageData &stageDat,
U32 &texIndex )
{
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
if ( tex )
{
passData.mSamplerNames[ texIndex ] = "diffuseMap";
passData.mTexSlot[ texIndex++ ].texObject = tex;
}
passData.mSamplerNames[ texIndex ] = "diffuseMap";
passData.mTexSlot[ texIndex++ ].texObject = tex;
}