浏览代码

Stop checking isFramebufferTexture in copyFramebufferToTexture. (#23964)

chubei-oppen 3 年之前
父节点
当前提交
c29801257c
共有 1 个文件被更改,包括 0 次插入7 次删除
  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 );