浏览代码

addressing feedback

Emmett Lalish 5 年之前
父节点
当前提交
c676111c93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -2728,7 +2728,7 @@ function WebGLRenderer( parameters ) {
 
 		textures.setTexture2D( texture, 0 );
 
-		_gl.copyTexImage2D( _gl.TEXTURE_2D, level || 0, glFormat, position.x, position.y, width, height, 0 );
+		_gl.copyTexImage2D( _gl.TEXTURE_2D, level, glFormat, position.x, position.y, width, height, 0 );
 
 	};