Browse Source

VideoTexture: Make update() more robust

Mugen87 7 years ago
parent
commit
0d215e46ca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/textures/VideoTexture.js

+ 2 - 0
src/textures/VideoTexture.js

@@ -14,6 +14,8 @@ function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, forma
 
 	function update() {
 
+		var video = scope.image;
+
 		if ( video.readyState >= video.HAVE_CURRENT_DATA ) {
 
 			scope.needsUpdate = true;