소스 검색

Merge pull request #20449 from ianpurvis/fix/video-texture-clone

VideoTexture: Fix error when detecting requestVideoFrameCallback
Mr.doob 4 년 전
부모
커밋
261c809e41
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/textures/VideoTexture.js

+ 6 - 0
src/textures/VideoTexture.js

@@ -33,6 +33,12 @@ VideoTexture.prototype = Object.assign( Object.create( Texture.prototype ), {
 
 
 	constructor: VideoTexture,
 	constructor: VideoTexture,
 
 
+	clone: function () {
+
+		return new this.constructor( this.image ).copy( this );
+
+	},
+
 	isVideoTexture: true,
 	isVideoTexture: true,
 
 
 	update: function () {
 	update: function () {