2
0
Эх сурвалжийг харах

Stop checking isFramebufferTexture in copyFramebufferToTexture. (#23964)

chubei-oppen 3 жил өмнө
parent
commit
c29801257c

+ 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 );