소스 검색

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