File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1451,9 +1451,16 @@ class Renderer {
14511451 // a clear operation clears the intermediate renderTarget texture, but should not update the screen canvas.
14521452
14531453 const currentAutoClear = this . autoClear ;
1454+ const currentXR = this . xr . enabled ;
1455+
14541456 this . autoClear = false ;
1457+ this . xr . enabled = false ;
1458+
14551459 this . _renderScene ( quad , quad . camera , false ) ;
1460+
14561461 this . autoClear = currentAutoClear ;
1462+ this . xr . enabled = currentXR ;
1463+
14571464
14581465 }
14591466
@@ -2051,7 +2058,7 @@ class Renderer {
20512058 */
20522059 get isOutputTarget ( ) {
20532060
2054- return this . _renderTarget === this . _outputRenderTarget ;
2061+ return this . _renderTarget === this . _outputRenderTarget || this . _renderTarget === null ;
20552062
20562063 }
20572064
You can’t perform that action at this time.
0 commit comments