Don't fetch resource format name for empty bindings

This commit is contained in:
baldurk
2019-03-27 17:59:16 +00:00
parent 13d35645be
commit d519f086e1
@@ -2195,10 +2195,15 @@ void VulkanPipelineStateViewer::setState()
{
uint32_t w = 1, h = 1, d = 1;
uint32_t a = 1;
QString format = p.viewFormat.Name();
QString typeName = tr("Unknown");
QString format;
QString typeName;
if(p.imageResourceId == ResourceId())
if(p.imageResourceId != ResourceId())
{
format = p.viewFormat.Name();
typeName = tr("Unknown");
}
else
{
format = lit("-");
typeName = lit("-");