Browse Source

Stop checking isFramebufferTexture in copyFramebufferToTexture. (#23964)

chubei-oppen 3 years ago
parent
commit
c29801257c
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/renderers/WebGLRenderer.js

+ 0 - 7
src/renderers/WebGLRenderer.js

@@ -2007,13 +2007,6 @@ function WebGLRenderer( parameters = {} ) {
 
 	this.copyFramebufferToTexture = function ( position, texture, level = 0 ) {
 
-		if ( texture.isFramebufferTexture !== true ) {
-
-			console.error( 'THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.' );
-			return;
-
-		}
-
 		const levelScale = Math.pow( 2, - level );
 		const width = Math.floor( texture.image.width * levelScale );
 		const height = Math.floor( texture.image.height * levelScale );