소스 검색

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

alteredq 14 년 전
부모
커밋
d5b117fc18
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

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