|
@@ -171,7 +171,7 @@ export class MixMaterial extends PushMaterial {
|
|
|
|
|
|
// Textures
|
|
// Textures
|
|
if (scene.texturesEnabled) {
|
|
if (scene.texturesEnabled) {
|
|
- if (this._mixTexture1 && !this._mixTexture1.isReady()) {
|
|
|
|
|
|
+ if (!this._mixTexture1 || !this._mixTexture1.isReady()) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -180,7 +180,7 @@ export class MixMaterial extends PushMaterial {
|
|
if (this._mixTexture2) {
|
|
if (this._mixTexture2) {
|
|
defines.MIXMAP2 = true;
|
|
defines.MIXMAP2 = true;
|
|
}
|
|
}
|
|
- if (this._mixTexture2 && !this._mixTexture2.isReady()) {
|
|
|
|
|
|
+ if (!this._mixTexture2 || !this._mixTexture2.isReady()) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|