提交 d5b117fc 编写于 作者: A alteredq

Merge remote-tracking branch 'remotes/rectalogic/imagedata' into dev

......@@ -4891,7 +4891,7 @@ THREE.WebGLRenderer = function ( parameters ) {
_gl.bindTexture( _gl.TEXTURE_2D, texture.__webglTexture );
if ( texture.image.data ) {
if ( texture instanceof THREE.DataTexture) {
_gl.texImage2D( _gl.TEXTURE_2D, 0, paramThreeToGL( texture.format ), texture.image.width, texture.image.height, 0, paramThreeToGL( texture.format ), _gl.UNSIGNED_BYTE, texture.image.data );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册