Skip to content

Commit d2842cc

Browse files
committed
Updated builds.
1 parent a539d00 commit d2842cc

File tree

2 files changed

+61
-47
lines changed

2 files changed

+61
-47
lines changed

build/three.js

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22041,11 +22041,11 @@
2204122041
if ( p === UnsignedIntType ) return _gl.UNSIGNED_INT;
2204222042
if ( p === FloatType ) return _gl.FLOAT;
2204322043

22044-
extension = extensions.get( 'OES_texture_half_float' );
22044+
if ( p === HalfFloatType ) {
2204522045

22046-
if ( extension !== null ) {
22046+
extension = extensions.get( 'OES_texture_half_float' );
2204722047

22048-
if ( p === HalfFloatType ) return extension.HALF_FLOAT_OES;
22048+
if ( extension !== null ) return extension.HALF_FLOAT_OES;
2204922049

2205022050
}
2205122051

@@ -22074,50 +22074,64 @@
2207422074
if ( p === OneMinusDstColorFactor ) return _gl.ONE_MINUS_DST_COLOR;
2207522075
if ( p === SrcAlphaSaturateFactor ) return _gl.SRC_ALPHA_SATURATE;
2207622076

22077-
extension = extensions.get( 'WEBGL_compressed_texture_s3tc' );
22077+
if ( p === RGB_S3TC_DXT1_Format || p === RGBA_S3TC_DXT1_Format ||
22078+
p === RGBA_S3TC_DXT3_Format || p === RGBA_S3TC_DXT5_Format ) {
2207822079

22079-
if ( extension !== null ) {
22080+
extension = extensions.get( 'WEBGL_compressed_texture_s3tc' );
2208022081

22081-
if ( p === RGB_S3TC_DXT1_Format ) return extension.COMPRESSED_RGB_S3TC_DXT1_EXT;
22082-
if ( p === RGBA_S3TC_DXT1_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT;
22083-
if ( p === RGBA_S3TC_DXT3_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT;
22084-
if ( p === RGBA_S3TC_DXT5_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT;
22082+
if ( extension !== null ) {
22083+
22084+
if ( p === RGB_S3TC_DXT1_Format ) return extension.COMPRESSED_RGB_S3TC_DXT1_EXT;
22085+
if ( p === RGBA_S3TC_DXT1_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT;
22086+
if ( p === RGBA_S3TC_DXT3_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT;
22087+
if ( p === RGBA_S3TC_DXT5_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT;
22088+
22089+
}
2208522090

2208622091
}
2208722092

22088-
extension = extensions.get( 'WEBGL_compressed_texture_pvrtc' );
22093+
if ( p === RGB_PVRTC_4BPPV1_Format || p === RGB_PVRTC_2BPPV1_Format ||
22094+
p === RGBA_PVRTC_4BPPV1_Format || p === RGBA_PVRTC_2BPPV1_Format ) {
2208922095

22090-
if ( extension !== null ) {
22096+
extension = extensions.get( 'WEBGL_compressed_texture_pvrtc' );
22097+
22098+
if ( extension !== null ) {
2209122099

22092-
if ( p === RGB_PVRTC_4BPPV1_Format ) return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
22093-
if ( p === RGB_PVRTC_2BPPV1_Format ) return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
22094-
if ( p === RGBA_PVRTC_4BPPV1_Format ) return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
22095-
if ( p === RGBA_PVRTC_2BPPV1_Format ) return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
22100+
if ( p === RGB_PVRTC_4BPPV1_Format ) return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
22101+
if ( p === RGB_PVRTC_2BPPV1_Format ) return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
22102+
if ( p === RGBA_PVRTC_4BPPV1_Format ) return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
22103+
if ( p === RGBA_PVRTC_2BPPV1_Format ) return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
22104+
22105+
}
2209622106

2209722107
}
2209822108

22099-
extension = extensions.get( 'WEBGL_compressed_texture_etc1' );
22109+
if ( p === RGB_ETC1_Format ) {
2210022110

22101-
if ( extension !== null ) {
22111+
extension = extensions.get( 'WEBGL_compressed_texture_etc1' );
2210222112

22103-
if ( p === RGB_ETC1_Format ) return extension.COMPRESSED_RGB_ETC1_WEBGL;
22113+
if ( extension !== null ) return extension.COMPRESSED_RGB_ETC1_WEBGL;
2210422114

2210522115
}
2210622116

22107-
extension = extensions.get( 'EXT_blend_minmax' );
22117+
if ( p === MinEquation || p === MaxEquation ) {
2210822118

22109-
if ( extension !== null ) {
22119+
extension = extensions.get( 'EXT_blend_minmax' );
2211022120

22111-
if ( p === MinEquation ) return extension.MIN_EXT;
22112-
if ( p === MaxEquation ) return extension.MAX_EXT;
22121+
if ( extension !== null ) {
22122+
22123+
if ( p === MinEquation ) return extension.MIN_EXT;
22124+
if ( p === MaxEquation ) return extension.MAX_EXT;
22125+
22126+
}
2211322127

2211422128
}
2211522129

22116-
extension = extensions.get( 'WEBGL_depth_texture' );
22130+
if ( p === UnsignedInt248Type ) {
2211722131

22118-
if ( extension !== null ){
22132+
extension = extensions.get( 'WEBGL_depth_texture' );
2211922133

22120-
if ( p === UnsignedInt248Type ) return extension.UNSIGNED_INT_24_8_WEBGL;
22134+
if ( extension !== null ) return extension.UNSIGNED_INT_24_8_WEBGL;
2212122135

2212222136
}
2212322137

0 commit comments

Comments
 (0)