File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 99	UnsignedByteType , 
1010	LinearEncoding , 
1111	NoToneMapping , 
12- 	LinearFilter , 
1312	LinearMipmapLinearFilter 
1413}  from  '../constants.js' ; 
14+ import  {  floorPowerOfTwo  }  from  '../math/MathUtils' ; 
1515import  {  Frustum  }  from  '../math/Frustum.js' ; 
1616import  {  Matrix4  }  from  '../math/Matrix4.js' ; 
1717import  {  Vector2  }  from  '../math/Vector2.js' ; 
@@ -1194,14 +1194,23 @@ function WebGLRenderer( parameters = {} ) {
11941194			_transmissionRenderTarget  =  new  renderTargetType (  1 ,  1 ,  { 
11951195				generateMipmaps : true , 
11961196				type : HalfFloatType , 
1197- 				minFilter : isWebGL2  ?  LinearMipmapLinearFilter  :  LinearFilter , 
1197+ 				minFilter : LinearMipmapLinearFilter , 
11981198				useRenderToTexture : extensions . has (  'WEBGL_multisampled_render_to_texture'  ) 
11991199			}  ) ; 
12001200
12011201		} 
12021202
12031203		_this . getDrawingBufferSize (  _vector2  ) ; 
1204- 		_transmissionRenderTarget . setSize (  _vector2 . x ,  _vector2 . y  ) ; 
1204+ 
1205+ 		if  (  isWebGL2  )  { 
1206+ 
1207+ 			_transmissionRenderTarget . setSize (  _vector2 . x ,  _vector2 . y  ) ; 
1208+ 
1209+ 		}  else  { 
1210+ 
1211+ 			_transmissionRenderTarget . setSize (  floorPowerOfTwo (  _vector2 . x  ) ,  floorPowerOfTwo (  _vector2 . y  )  ) ; 
1212+ 
1213+ 		} 
12051214
12061215		// 
12071216
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments