Fix a case where selecting an instance would break viewing other draws

* The UI would prevent you from selecting too high an instance for a
  draw, but if you selected a non-zero index and then selected a non-
  instanced draw, it would try and fail to render instance N.
This commit is contained in:
baldurk
2016-06-03 17:28:43 +02:00
parent a853836819
commit e0d664f1b3
+1 -2
View File
@@ -404,8 +404,7 @@ bool ReplayRenderer::GetPostVSData(uint32_t instID, MeshDataStage stage, MeshFor
if(draw == NULL || (draw->flags & eDraw_Drawcall) == 0)
return false;
if(instID >= RDCMAX(1U, draw->numInstances))
return false;
instID = RDCMIN(instID, draw->numInstances - 1);
*data = m_pDevice->GetPostVSBuffers(draw->eventID, instID, stage);