@@ -157,9 +157,10 @@ public PostProcessSystem(HDRenderPipelineAsset hdAsset, RenderPipelineResources
157157 m_UseSafePath = SystemInfo . graphicsDeviceVendor
158158 . ToLowerInvariant ( ) . Contains ( "intel" ) ;
159159
160- var settings = hdAsset . currentPlatformRenderPipelineSettings . postProcessSettings ;
161- m_LutSize = settings . lutSize ;
160+ var postProcessSettings = hdAsset . currentPlatformRenderPipelineSettings . postProcessSettings ;
161+ m_LutSize = postProcessSettings . lutSize ;
162162
163+ // Call after initializing m_LutSize as it's needed for render target allocation.
163164 InitializeNonRenderGraphResources ( hdAsset ) ;
164165
165166 // Grading specific
@@ -180,16 +181,16 @@ public PostProcessSystem(HDRenderPipelineAsset hdAsset, RenderPipelineResources
180181 // relying on (breaks determinism in their code)
181182 m_Random = new System . Random ( ) ;
182183
183- m_ColorFormat = ( GraphicsFormat ) settings . bufferFormat ;
184+ m_ColorFormat = ( GraphicsFormat ) postProcessSettings . bufferFormat ;
184185 m_KeepAlpha = false ;
185186
186187 // if both rendering and post-processing support an alpha channel, then post-processing will process (or copy) the alpha
187- m_EnableAlpha = settings . supportsAlpha && settings . supportsAlpha ;
188+ m_EnableAlpha = hdAsset . currentPlatformRenderPipelineSettings . supportsAlpha && postProcessSettings . supportsAlpha ;
188189
189190 if ( m_EnableAlpha == false )
190191 {
191192 // if only rendering has an alpha channel (and not post-processing), then we just copy the alpha to the output (but we don't process it).
192- m_KeepAlpha = settings . supportsAlpha ;
193+ m_KeepAlpha = hdAsset . currentPlatformRenderPipelineSettings . supportsAlpha ;
193194 }
194195 }
195196
0 commit comments