mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
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:
commit
ca382f56a6
1 changed files with 2 additions and 5 deletions
|
|
@ -986,11 +986,8 @@ void DiffuseMapFeatGLSL::setTexData( Material::StageData &stageDat,
|
||||||
U32 &texIndex )
|
U32 &texIndex )
|
||||||
{
|
{
|
||||||
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue