mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Don't crash if no mesh shader reflection is avialable on a mesh draw
* This is possible after a device lost event.
This commit is contained in:
@@ -2300,7 +2300,10 @@ void VulkanPipelineStateViewer::setState()
|
||||
setShaderState(state.taskShader, state.graphics, ui->tsShader, ui->tsResources, ui->tsUBOs);
|
||||
setShaderState(state.meshShader, state.graphics, ui->msShader, ui->msResources, ui->msUBOs);
|
||||
|
||||
ui->msTopology->setText(ToQStr(state.meshShader.reflection->outputTopology));
|
||||
if(state.meshShader.reflection)
|
||||
ui->msTopology->setText(ToQStr(state.meshShader.reflection->outputTopology));
|
||||
else
|
||||
ui->msTopology->setText(QString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user