Prechádzať zdrojové kódy

Merge pull request #8506 from JustinHoldstock/dev

Set to use HAVE_CURRENT_DATA for VideoTexture updates
Mr.doob 9 rokov pred
rodič
commit
955c2187d7
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;