Skip to content

Commit 42b673f

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.3] UUM-133557 Color texture is read twice in custom pass
1 parent 48a4067 commit 42b673f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/CustomPass

Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/CustomPass/CustomPass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ RenderTargets ReadRenderTargets(in IUnsafeRenderGraphBuilder builder, in RenderT
227227
output.colorBufferRG = targets.colorBufferRG;
228228
builder.UseTexture(output.colorBufferRG, AccessFlags.ReadWrite);
229229
}
230-
if (targets.nonMSAAColorBufferRG.IsValid())
230+
if (targets.nonMSAAColorBufferRG.IsValid() && targets.nonMSAAColorBufferRG != targets.colorBufferRG)
231231
{
232232
output.nonMSAAColorBufferRG = targets.nonMSAAColorBufferRG;
233233
builder.UseTexture(output.nonMSAAColorBufferRG, AccessFlags.ReadWrite);

0 commit comments

Comments
 (0)