Explorar o código

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

Justin Holdstock %!s(int64=9) %!d(string=hai) anos
pai
achega
a8d84c675a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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_ENOUGH_DATA ) {
+		if ( video.readyState === video.HAVE_CURRENT_DATA ) {
 
 			scope.needsUpdate = true;