Use correct IsDrawInRenderPass() for vkCmdDraw validity check

This commit is contained in:
baldurk
2017-09-11 20:36:28 +01:00
parent e25af7685b
commit 7a34ebb934
@@ -82,7 +82,7 @@ bool WrappedVulkan::Serialise_vkCmdDraw(Serialiser *localSerialiser, VkCommandBu
if(m_State == EXECUTING)
{
if(ShouldRerecordCmd(cmdid) && InRerecordRange(cmdid) && m_RenderState.renderPass != ResourceId())
if(ShouldRerecordCmd(cmdid) && InRerecordRange(cmdid) && IsDrawInRenderPass())
{
commandBuffer = RerecordCmdBuf(cmdid);