提交 65dd2bce 编写于 作者: M Mr.doob

WebGLRenderer: Fixed copyFramebufferToTexture and copyTextureToTexture.

上级 5ef17047
......@@ -2576,7 +2576,7 @@ function WebGLRenderer( parameters ) {
var height = texture.image.height;
var glFormat = utils.convert( texture.format );
this.setTexture2D( texture, 0 );
textures.setTexture2D( texture, 0 );
_gl.copyTexImage2D( _gl.TEXTURE_2D, level || 0, glFormat, position.x, position.y, width, height, 0 );
......@@ -2589,7 +2589,7 @@ function WebGLRenderer( parameters ) {
var glFormat = utils.convert( dstTexture.format );
var glType = utils.convert( dstTexture.type );
this.setTexture2D( dstTexture, 0 );
textures.setTexture2D( dstTexture, 0 );
if ( srcTexture.isDataTexture ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册