Don't try to replay vkCmdNextSubpass when doing a single-draw replay

This commit is contained in:
baldurk
2017-07-06 16:15:44 +01:00
parent 419a2ecd42
commit 575580e13b
@@ -975,7 +975,9 @@ bool WrappedVulkan::Serialise_vkCmdNextSubpass(Serialiser *localSerialiser,
if(m_State == EXECUTING)
{
if(ShouldRerecordCmd(cmdid) && InRerecordRange(cmdid))
// don't do anything if we're executing a single draw, NextSubpass is meaningless (and invalid
// on a partial render pass)
if(ShouldRerecordCmd(cmdid) && InRerecordRange(cmdid) && m_FirstEventID != m_LastEventID)
{
commandBuffer = RerecordCmdBuf(cmdid);