Browse Source

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

Cyle 12 năm trước cách đây
mục cha
commit
41db18042a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Babylon/Materials/textures/babylon.baseTexture.js

+ 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();