mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Update processedShaderMaterial.cpp
requires extra safety when the diffusemap asset is null, this is something that will be fixed by the material asset refactor
This commit is contained in:
parent
774bd874b5
commit
79e046d379
1 changed files with 6 additions and 0 deletions
|
|
@ -875,6 +875,12 @@ void ProcessedShaderMaterial::setTextureStages( SceneRenderState *state, const S
|
|||
case Material::TexTarget:
|
||||
{
|
||||
texTarget = rpd->mTexSlot[i].texTarget;
|
||||
if (!mMaterial->getDiffuseMapAsset(0).notNull())
|
||||
{
|
||||
GFX->setTexture(i, NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
texObject = mMaterial->getDiffuseMapAsset(0)->getTexture(&GFXStaticTextureSRGBProfile);
|
||||
if ( !texTarget )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue