File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1266,7 +1266,7 @@ class WebGLBackend extends Backend {
12661266
12671267 const renderTarget = this . _currentContext . renderTarget ;
12681268
1269- const pixelRatio = renderTarget !== null ? 1 : this . renderer . getPixelRatio ( ) ;
1269+ const pixelRatio = ( renderTarget === null || renderTarget . isPostProcessingRenderTarget === true ) ? this . renderer . getPixelRatio ( ) : 1 ;
12701270 const isRenderCameraDepthArray = this . _isRenderCameraDepthArray ( this . _currentContext ) ;
12711271 const prevActiveCubeFace = this . _currentContext . activeCubeFace ;
12721272
Original file line number Diff line number Diff line change @@ -2257,7 +2257,8 @@ class WebGPUBackend extends Backend {
22572257
22582258 }
22592259
2260- const pixelRatio = context . renderTarget !== null ? 1 : this . renderer . getPixelRatio ( ) ;
2260+ const renderTarget = context . renderTarget ;
2261+ const pixelRatio = ( renderTarget === null || renderTarget . isPostProcessingRenderTarget === true ) ? this . renderer . getPixelRatio ( ) : 1 ;
22612262 const indexPos = cameraIndex ? bindings . indexOf ( cameraIndex ) : - 1 ;
22622263
22632264 for ( let i = 0 , len = cameras . length ; i < len ; i ++ ) {
You can’t perform that action at this time.
0 commit comments