Skip to content

Commit 63ee96e

Browse files
RenderPassBase: fixed bug in attachment state derivation logic
1 parent d3dba51 commit 63ee96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/GraphicsEngine/include/RenderPassBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class RenderPassBase : public DeviceObjectBase<typename EngineImplTraits::Render
215215
{
216216
for (Uint32 att = 0; att < Desc.AttachmentCount; ++att)
217217
{
218-
SetAttachmentState(subpass, att, subpass > 0 ? GetAttachmentState(subpass - 1, att) : Desc.pAttachments[subpass].InitialState);
218+
SetAttachmentState(subpass, att, subpass > 0 ? GetAttachmentState(subpass - 1, att) : Desc.pAttachments[att].InitialState);
219219
}
220220

221221
const auto& SrcSubpass = SrcSubpasses[subpass];

0 commit comments

Comments
 (0)