Pass through primitive restart state when rendering meshes

This commit is contained in:
baldurk
2019-08-12 17:53:22 +01:00
parent c0f7dc34e7
commit 61de35bfc6
4 changed files with 25 additions and 4 deletions
+3
View File
@@ -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;