mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user