diff --git a/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp b/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp index 7c54cced8..82a5123ae 100644 --- a/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp +++ b/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp @@ -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; }