Pārlūkot izejas kodu

Video texture should check ready state of video to see if current frame is renderable, not if future frames are renderable

Justin Holdstock 10 gadi atpakaļ
vecāks
revīzija
a8d84c675a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 );
 		requestAnimationFrame( update );
 
 
-		if ( video.readyState === video.HAVE_ENOUGH_DATA ) {
+		if ( video.readyState === video.HAVE_CURRENT_DATA ) {
 
 
 			scope.needsUpdate = true;
 			scope.needsUpdate = true;
 
 

粤ICP备19079148号