mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-13 07:39:22 +00:00
Fix a crash with the strip-restart handling code if draw is NULL
This commit is contained in:
1 parent
605fd4dcc5
commit
3d41d53cc1
1 file changed
+2
-2
@@ -1193,8 +1193,8 @@ void BufferViewer::OnEventChanged(uint32_t eventID)
|
||||
m_ModelVSOut->primRestart = 0;
|
||||
m_ModelGSOut->primRestart = 0;
|
||||
|
||||
if(m_Ctx.CurPipelineState().IsStripRestartEnabled() && (draw->flags & DrawFlags::UseIBuffer) &&
|
||||
IsStrip(draw->topology))
|
||||
if(m_Ctx.CurPipelineState().IsStripRestartEnabled() && draw &&
|
||||
(draw->flags & DrawFlags::UseIBuffer) && IsStrip(draw->topology))
|
||||
{
|
||||
m_ModelVSIn->primRestart = m_Ctx.CurPipelineState().GetStripRestartIndex();
|
||||
|
||||
|
||||
Reference in new issue
Block a user