mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
OpenGL fix - fixed a crash when you activate Alpha Threshold checkbox without a diffuse map
This commit is contained in:
parent
d08db6cc54
commit
c9116dd4a4
|
|
@ -986,11 +986,9 @@ void DiffuseMapFeatGLSL::setTexData( Material::StageData &stageDat,
|
|||
U32 &texIndex )
|
||||
{
|
||||
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
|
||||
passData.mSamplerNames[ texIndex ] = "diffuseMap";
|
||||
if ( tex )
|
||||
{
|
||||
passData.mSamplerNames[ texIndex ] = "diffuseMap";
|
||||
passData.mTexSlot[ texIndex++ ].texObject = tex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue