@@ -2837,7 +2837,7 @@ THREE.WebGLRenderer = function ( parameters ) {
2837
2837
state . activeTexture ( _gl . TEXTURE0 + slot ) ;
2838
2838
state . bindTexture ( _gl . TEXTURE_2D , textureProperties . __webglTexture ) ;
2839
2839
2840
- } ;
2840
+ }
2841
2841
2842
2842
function clampToMaxSize ( image , maxSize ) {
2843
2843
@@ -3244,7 +3244,7 @@ THREE.WebGLRenderer = function ( parameters ) {
3244
3244
3245
3245
return _currentRenderTarget ;
3246
3246
3247
- }
3247
+ } ;
3248
3248
3249
3249
this . setRenderTarget = function ( renderTarget ) {
3250
3250
@@ -3337,18 +3337,17 @@ THREE.WebGLRenderer = function ( parameters ) {
3337
3337
3338
3338
var texture = renderTarget . texture ;
3339
3339
3340
- if ( texture . format !== THREE . RGBAFormat
3341
- && paramThreeToGL ( texture . format ) !== _gl . getParameter ( _gl . IMPLEMENTATION_COLOR_READ_FORMAT ) ) {
3340
+ if ( texture . format !== THREE . RGBAFormat && paramThreeToGL ( texture . format ) !== _gl . getParameter ( _gl . IMPLEMENTATION_COLOR_READ_FORMAT ) ) {
3342
3341
3343
3342
console . error ( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.' ) ;
3344
3343
return ;
3345
3344
3346
3345
}
3347
3346
3348
- if ( texture . type !== THREE . UnsignedByteType
3349
- && paramThreeToGL ( texture . type ) !== _gl . getParameter ( _gl . IMPLEMENTATION_COLOR_READ_TYPE )
3350
- && ! ( texture . type === THREE . FloatType && extensions . get ( 'WEBGL_color_buffer_float' ) )
3351
- && ! ( texture . type === THREE . HalfFloatType && extensions . get ( 'EXT_color_buffer_half_float' ) ) ) {
3347
+ if ( texture . type !== THREE . UnsignedByteType &&
3348
+ paramThreeToGL ( texture . type ) !== _gl . getParameter ( _gl . IMPLEMENTATION_COLOR_READ_TYPE ) &&
3349
+ ! ( texture . type === THREE . FloatType && extensions . get ( 'WEBGL_color_buffer_float' ) ) &&
3350
+ ! ( texture . type === THREE . HalfFloatType && extensions . get ( 'EXT_color_buffer_half_float' ) ) ) {
3352
3351
3353
3352
console . error ( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.' ) ;
3354
3353
return ;
0 commit comments