|
|
@@ -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 )
|
|
|
{
|