Преглед на файлове

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

Cyle преди 12 години
родител
ревизия
41db18042a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();