message: Only pause and restart renderpasses in pixel history if one is active
  * Secondary command buffers don't have to be executed within a renderpass, so we
  can't assume that one is active.
diff: @@ -1390,6 +1390,7 @@ struct VulkanColorAndStencilCallback : public VulkanPixelHistoryCallback
  return;
  }
  + if(m_pDriver->GetCmdRenderState().renderPass != ResourceId())
  m_pDriver->GetCmdRenderState().EndRenderPass(cmd);
  // Copy
  @@ -1397,6 +1398,7 @@ struct VulkanColorAndStencilCallback : public VulkanPixelHistoryCallback
  CopyPixel(eventId, cmd, storeOffset);
  m_EventIndices.insert(std::make_pair(eventId, m_EventIndices.size()));
  + if(m_pDriver->GetCmdRenderState().renderPass != ResourceId())
  m_pDriver->GetCmdRenderState().BeginRenderPassAndApplyState(m_pDriver, cmd,
  VulkanRenderState::BindNone);
  }
  @@ -1429,7 +1431,9 @@ struct VulkanColorAndStencilCallback : public VulkanPixelHistoryCallback
  return;
  }
  + if(m_pDriver->GetCmdRenderState().renderPass != ResourceId())
  m_pDriver->GetCmdRenderState().EndRenderPass(cmd);
  +
  size_t storeOffset = 0;
  auto it = m_EventIndices.find(eventId);
  if(it != m_EventIndices.end())
  @@ -1442,6 +1446,8 @@ struct VulkanColorAndStencilCallback : public VulkanPixelHistoryCallback
  m_EventIndices.insert(std::make_pair(eventId, m_EventIndices.size()));
  }
  CopyPixel(eventId, cmd, storeOffset + offsetof(struct EventInfo, postmod));
  +
  + if(m_pDriver->GetCmdRenderState().renderPass != ResourceId())
  m_pDriver->GetCmdRenderState().BeginRenderPassAndApplyState(m_pDriver, cmd,
  VulkanRenderState::BindNone);
  }
  