mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-27 16:15:49 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user