fix to avoid a missing sampler name declaration

This commit is contained in:
Anis 2015-01-21 14:39:05 +01:00
parent 5d392e373e
commit 4ccf89ba8e

View file

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