Fix check for undefined view format type

This commit is contained in:
baldurk
2018-10-30 21:48:27 +00:00
parent ad1196c2d2
commit 8c3cc36e9c
2 changed files with 2 additions and 2 deletions
@@ -2105,7 +2105,7 @@ void D3D11PipelineStateViewer::resource_itemActivated(RDTreeWidgetItem *item, in
{
const auto &desc = res.variableType.descriptor;
if(view.res.viewFormat.Name().empty())
if(view.res.viewFormat.type == ResourceFormatType::Undefined)
{
format = QString();
if(desc.rowMajorStorage)
@@ -1965,7 +1965,7 @@ void D3D12PipelineStateViewer::resource_itemActivated(RDTreeWidgetItem *item, in
{
const auto &desc = res.variableType.descriptor;
if(view.res.viewFormat.Name().empty())
if(view.res.viewFormat.type == ResourceFormatType::Undefined)
{
format = QString();
if(desc.rowMajorStorage)