소스 검색

Update WebGLUtils for WebGL 2.0 UNSIGNED_INT_24_8

Takahiro 7 년 전
부모
커밋
f02117fe85
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/renderers/webgl/WebGLUtils.js

+ 1 - 1
src/renderers/webgl/WebGLUtils.js

@@ -142,7 +142,7 @@ function WebGLUtils( gl, extensions ) {
 
 			extension = extensions.get( 'WEBGL_depth_texture' );
 
-			if ( extension !== null ) return extension.UNSIGNED_INT_24_8_WEBGL;
+			if ( extension !== null ) return isWebGL2 ? extension.UNSIGNED_INT_24_8 : extension.UNSIGNED_INT_24_8_WEBGL;
 
 		}