mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
fix to avoid a missing sampler name declaration
This commit is contained in:
parent
5d392e373e
commit
4ccf89ba8e
1 changed files with 2 additions and 3 deletions
|
|
@ -985,10 +985,9 @@ void DiffuseMapFeatGLSL::setTexData( Material::StageData &stageDat,
|
||||||
RenderPassData &passData,
|
RenderPassData &passData,
|
||||||
U32 &texIndex )
|
U32 &texIndex )
|
||||||
{
|
{
|
||||||
passData.mSamplerNames[ texIndex ] = "diffuseMap";
|
|
||||||
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
|
GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
|
||||||
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