@@ -277,18 +277,18 @@ bool DynamicResolutionAllowsFinalBlitToCameraTarget()
277
277
}
278
278
#endif
279
279
280
- #if UNITY_2019_1_OR_NEWER
281
- // We always use a CommandBuffer to blit to the final render target
282
- // OnRenderImage is used only to avoid the automatic blit from the RenderTexture of Camera.forceIntoRenderTexture to the actual target
283
- [ ImageEffectUsesCommandBuffer ]
284
- void OnRenderImage ( RenderTexture src , RenderTexture dst )
285
- {
286
- if ( finalBlitToCameraTarget && DynamicResolutionAllowsFinalBlitToCameraTarget ( ) )
287
- RenderTexture . active = dst ; // silence warning
288
- else
289
- Graphics . Blit ( src , dst ) ;
290
- }
291
- #endif
280
+ // #if UNITY_2019_1_OR_NEWER
281
+ // // We always use a CommandBuffer to blit to the final render target
282
+ // // OnRenderImage is used only to avoid the automatic blit from the RenderTexture of Camera.forceIntoRenderTexture to the actual target
283
+ // [ImageEffectUsesCommandBuffer]
284
+ // void OnRenderImage(RenderTexture src, RenderTexture dst)
285
+ // {
286
+ // if (finalBlitToCameraTarget && DynamicResolutionAllowsFinalBlitToCameraTarget())
287
+ // RenderTexture.active = dst; // silence warning
288
+ // else
289
+ // Graphics.Blit(src, dst);
290
+ // }
291
+ // #endif
292
292
293
293
/// <summary>
294
294
/// Initializes this layer. If you create the layer via scripting you should always call
@@ -668,20 +668,20 @@ void BuildCommandBuffers()
668
668
669
669
context . destination = cameraTarget ;
670
670
671
- #if UNITY_2019_1_OR_NEWER
672
- if ( finalBlitToCameraTarget && ! RuntimeUtilities . scriptableRenderPipelineActive )
673
- {
674
- if ( m_Camera . targetTexture )
675
- {
676
- context . destination = m_Camera . targetTexture . colorBuffer ;
677
- }
678
- else
679
- {
680
- context . flip = true ;
681
- context . destination = Display . main . colorBuffer ;
682
- }
683
- }
684
- #endif
671
+ // #if UNITY_2019_1_OR_NEWER
672
+ // if (finalBlitToCameraTarget && !RuntimeUtilities.scriptableRenderPipelineActive)
673
+ // {
674
+ // if (m_Camera.targetTexture)
675
+ // {
676
+ // context.destination = m_Camera.targetTexture.colorBuffer;
677
+ // }
678
+ // else
679
+ // {
680
+ // context.flip = true;
681
+ // context.destination = Display.main.colorBuffer;
682
+ // }
683
+ // }
684
+ // #endif
685
685
686
686
context . command = ( uberAfterOpaque ? m_LegacyCmdBufferOpaque : m_LegacyCmdBuffer ) ;
687
687
0 commit comments