diff --git a/renderdoc/driver/vulkan/vk_core.cpp b/renderdoc/driver/vulkan/vk_core.cpp index f63e0a29d..2a145d58c 100644 --- a/renderdoc/driver/vulkan/vk_core.cpp +++ b/renderdoc/driver/vulkan/vk_core.cpp @@ -6017,6 +6017,7 @@ void WrappedVulkan::AddForcedReference(VkResourceRecord *record) void WrappedVulkan::AddAction(const ActionDescription &a) { + RDCASSERT(IsLoading(m_State)); m_AddedAction = true; ActionDescription action = a; @@ -6698,6 +6699,7 @@ void WrappedVulkan::AddFramebufferUsageAllChildren(VulkanActionTreeNode &actionN void WrappedVulkan::AddEvent() { + RDCASSERT(IsLoading(m_State)); APIEvent apievent; apievent.fileOffset = m_CurChunkOffset;