Преглед изворни кода

Update VideoTexture.js

Greater than or equal to readyState HAVE_CURRENT_DATA
Justin Holdstock пре 9 година
родитељ
комит
854ebf5bd6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/textures/VideoTexture.js

+ 1 - 1
src/textures/VideoTexture.js

@@ -14,7 +14,7 @@ THREE.VideoTexture = function ( video, mapping, wrapS, wrapT, magFilter, minFilt
 
 		requestAnimationFrame( update );
 
-		if ( video.readyState === video.HAVE_CURRENT_DATA ) {
+		if ( video.readyState >= video.HAVE_CURRENT_DATA ) {
 
 			scope.needsUpdate = true;