mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 11:06:54 +00:00
Pass through primitive restart state when rendering meshes
This commit is contained in:
@@ -2091,6 +2091,9 @@ void BufferViewer::OnEventChanged(uint32_t eventId)
|
||||
float vpWidth = qAbs(vp.width);
|
||||
float vpHeight = qAbs(vp.height);
|
||||
|
||||
m_Config.position.allowRestart = m_Ctx.CurPipelineState().IsStripRestartEnabled();
|
||||
m_Config.position.restartIndex = m_Ctx.CurPipelineState().GetStripRestartIndex();
|
||||
|
||||
m_Config.fov = ui->fovGuess->value();
|
||||
m_Config.aspect = (vpWidth > 0.0f && vpHeight > 0.0f) ? (vpWidth / vpHeight) : 1.0f;
|
||||
m_Config.highlightVert = 0;
|
||||
|
||||
Reference in New Issue
Block a user