瀏覽代碼

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