Explorar o código

Fixing videoTexture bug

Deltakosh %!s(int64=12) %!d(string=hai) anos
pai
achega
9b60c7cc35
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  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) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
babylon.1.4.0.js