Skip to content

Commit 275d7de

Browse files
HnMaterial: ensure the SRB is recreated after textures are updated
1 parent 9c1d472 commit 275d7de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Hydrogent/src/HnMaterial.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ void HnMaterial::AllocateTextures(const HnMaterialNetwork& Network,
594594
m_TextureAddressingAttribsDirty.store(true);
595595

596596
AllocateBufferSpace(RenderDelegate);
597+
598+
// Make sure we recreate the SRB next time UpdateSRB() is called
599+
m_ResourceCacheVersion = ~0u;
597600
}
598601

599602

0 commit comments

Comments
 (0)