mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Fix compile error comparing enums
This commit is contained in:
@@ -381,7 +381,7 @@ void PipelineStateViewer::exportHTMLTable(QXmlStreamWriter &xml, const QStringLi
|
||||
|
||||
QMetaType::Type type = (QMetaType::Type)el.type();
|
||||
|
||||
if(el.type() == QMetaType::Bool)
|
||||
if(type == QMetaType::Bool)
|
||||
xml.writeCharacters(el.toBool() ? tr("True") : tr("False"));
|
||||
else
|
||||
xml.writeCharacters(el.toString());
|
||||
@@ -648,4 +648,4 @@ bool PipelineStateViewer::SaveShaderFile(const ShaderReflection *shader)
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user