瀏覽代碼

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