Skip to content

Commit

Permalink
Only disable ImageEffectUsesCommandBuffer in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGraterUnity committed Nov 14, 2023
1 parent 62ec4b7 commit e1c25f3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ bool DynamicResolutionAllowsFinalBlitToCameraTarget()
#if UNITY_2019_1_OR_NEWER
// We always use a CommandBuffer to blit to the final render target
// OnRenderImage is used only to avoid the automatic blit from the RenderTexture of Camera.forceIntoRenderTexture to the actual target
#if !UNITY_EDITOR
[ImageEffectUsesCommandBuffer]
#endif
void OnRenderImage(RenderTexture src, RenderTexture dst)
{
if (finalBlitToCameraTarget && !m_CurrentContext.stereoActive && DynamicResolutionAllowsFinalBlitToCameraTarget())
Expand Down

0 comments on commit e1c25f3

Please sign in to comment.