Return an empty MeshFormat for GetPostVSData on invalid drawcall

This commit is contained in:
baldurk
2017-02-17 13:25:23 +00:00
parent 486f8d4441
commit 24c1042f06
+3
View File
@@ -390,7 +390,10 @@ bool ReplayRenderer::GetPostVSData(uint32_t instID, MeshDataStage stage, MeshFor
RDCEraseEl(ret);
if(draw == NULL || (draw->flags & eDraw_Drawcall) == 0)
{
*data = MeshFormat();
return false;
}
instID = RDCMIN(instID, draw->numInstances - 1);