Use correct IsDrawInRenderPass() for vkCmdDraw validity check

This commit is contained in:
baldurk committed 2017-09-11 20:23:56 +01:00
1 parent 3ef0c52e73
commit d6ffd19178
1 file changed
+1 -1
@@ -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);