소스 검색

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;