Przeglądaj źródła

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

Cyle 12 lat temu
rodzic
commit
41db18042a

+ 1 - 1
Babylon/Materials/textures/babylon.baseTexture.js

@@ -61,7 +61,7 @@
     };
 
     BABYLON.BaseTexture.prototype.releaseInternalTexture = function() {
-        if (this._texture === undefined) {
+        if (this._texture === undefined || this._texture === null) {
             return;
         }
         var texturesCache = this._scene.getEngine().getLoadedTexturesCache();