浏览代码

Fixing videoTexture bug

Deltakosh 12 年之前
父节点
当前提交
9b60c7cc35
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      Babylon/Materials/textures/babylon.videoTexture.js
  2. 1 1
      babylon.1.4.0.js

+ 3 - 1
Babylon/Materials/textures/babylon.videoTexture.js

@@ -22,7 +22,9 @@
 
         var that = this;
         this.video.addEventListener("canplaythrough", function () {
-            that._texture.isReady = true;
+            if (that._texture) {
+                that._texture.isReady = true;
+            }
         });
 
         urls.forEach(function (url) {

文件差异内容过多而无法显示
+ 1 - 1
babylon.1.4.0.js