Browse Source

VideoTexture: Make update() more robust

Mugen87 7 năm trước cách đây
mục cha
commit
0d215e46ca
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;