Browse Source

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

Cyle 12 years ago
parent
commit
41db18042a
1 changed files with 1 additions and 1 deletions
  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();