Fix switching between pipeline state viewers

This commit is contained in:
baldurk
2018-06-19 11:14:59 +01:00
parent 0795e739f9
commit e87eacb2a0
@@ -87,6 +87,15 @@ void PipelineStateViewer::OnCaptureClosed()
void PipelineStateViewer::OnEventChanged(uint32_t eventId)
{
if(m_Ctx.APIProps().pipelineType == GraphicsAPI::D3D11)
setToD3D11();
else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::D3D12)
setToD3D12();
else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::OpenGL)
setToGL();
else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::Vulkan)
setToVulkan();
if(m_Current)
m_Current->OnEventChanged(eventId);
}