Change previous/next/parent IDs in DrawcallDescription to pointers

* This is a legacy holdover from the C# interop not being able to preserve
  pointers easily.
This commit is contained in:
baldurk
2018-06-18 18:29:46 +01:00
parent f919ea81e2
commit 0dda96a045
25 changed files with 307 additions and 309 deletions
+4 -4
View File
@@ -573,8 +573,8 @@ void EventBrowser::on_stepNext_clicked()
const DrawcallDescription *draw = m_Ctx.CurDrawcall();
if(draw && draw->next > 0)
SelectEvent(draw->next);
if(draw && draw->next)
SelectEvent(draw->next->eventId);
// special case for the first 'virtual' draw at EID 0
if(m_Ctx.CurEvent() == 0)
@@ -588,8 +588,8 @@ void EventBrowser::on_stepPrev_clicked()
const DrawcallDescription *draw = m_Ctx.CurDrawcall();
if(draw && draw->previous > 0)
SelectEvent(draw->previous);
if(draw && draw->previous)
SelectEvent(draw->previous->eventId);
// special case for the first 'virtual' draw at EID 0
if(m_Ctx.CurEvent() == m_Ctx.GetFirstDrawcall()->eventId)