mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix check for undefined view format type
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user