Skip to content

Commit

Permalink
Fix RenderPass.computeHash (#18271)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar authored Feb 5, 2025
1 parent aca53d2 commit 51edbb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/gfx/base/render-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export abstract class RenderPass extends GFXObject {
}
if (subpass.colors.length) {
res += 'ca';
for (let j = 0; j < subpass.inputs.length; ++j) {
const ca = this._colorInfos[subpass.inputs[j]];
for (let j = 0; j < subpass.colors.length; ++j) {
const ca = this._colorInfos[subpass.colors[j]];
res += `,${ca.format},${ca.sampleCount}`;
}
}
Expand Down

0 comments on commit 51edbb2

Please sign in to comment.