mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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
1 changed files with 1 additions and 3 deletions
|
|
@ -986,11 +986,9 @@ void DiffuseMapFeatGLSL::setTexData( Material::StageData &stageDat,
|
||||||
U32 &texIndex )
|
U32 &texIndex )
|
||||||
{
|
{
|
||||||
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
|
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
|
||||||
|
passData.mSamplerNames[ texIndex ] = "diffuseMap";
|
||||||
if ( tex )
|
if ( tex )
|
||||||
{
|
|
||||||
passData.mSamplerNames[ texIndex ] = "diffuseMap";
|
|
||||||
passData.mTexSlot[ texIndex++ ].texObject = tex;
|
passData.mTexSlot[ texIndex++ ].texObject = tex;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue