提交 6dc72e26 编写于 作者: M Mugen87

VideoTexture: Clean up

上级 69ab9218
......@@ -14,11 +14,13 @@ function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, forma
// fires when the first frame of the media has finished loading (now there are valid texture data)
video.addEventListener( 'loadeddata', function () {
video.addEventListener( 'loadeddata', function onLoaded() {
scope.needsUpdate = true;
} );
video.removeEventListener( 'loadeddata', onLoaded, false );
}, false );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册